@import "main.css";

/*=== Auth => Login & Register ===*/
.main-content{
    margin-top: 1rem;
}
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    margin: 3rem auto;
}
.auth-card {
    background: var(--bg-grad);
    border-radius: 14px;
    width: 100%;
    max-width: 37rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}
.auth-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0.65;
}
.auth-card:hover {
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
}
.auth-card:hover::before {
    opacity: 1;
}
.auth-header {
    padding: 1.5rem 1rem 1rem;
    text-align: center;
}
.auth-header i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}
.auth-header h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.8rem;
}
.auth-header p {
    color: var(--text-white);
    margin: 0.2rem;
    font-size: 0.8rem;
}
.auth-form {
    padding: 0.2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.elandia-span {
    color: var(--primary-green);
    font-weight: bold;
}
.input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.input-group i {
    position: absolute;
    left: 0.9rem;
    color: var(--primary-green);
    font-size: 1rem;
}
.input-group input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-dark);
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.2s ease;
    margin: 0.7rem 0;
}
.input-group input:focus {
    border-color: var(--primary-green);
    background: var(--bg-dark);
    outline: none;
    box-shadow: 0 0 6px rgba(0, 255, 120, 0.25);
}
.password-toggle {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--text-gray, #aaa);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}
.password-toggle:hover {
    color: var(--primary-green);
}
.password-toggle i {
    font-size: 0.8rem;
    line-height: 1;
    width: 100%;
    text-align: center;
    display: block;
    margin: auto;
}
.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    flex-wrap: wrap;
    white-space: normal;
    margin-bottom: 0.4rem;
}
.auth-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 3px;
    background: var(--bg-dark, #fff);
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease-in-out;
}
.auth-checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-green);
    border-color: var(--primary-green);
}
.auth-checkbox-label input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 4px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: translate(-50%, -55%) rotate(-45deg);
}
.auth-checkbox-label input[type="checkbox"]:checked::after {
    border-left-color: #fff;
    border-bottom-color: #fff;
}
.form-options {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 0.5rem;
}
.forget-password-link {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.forget-password-link:hover,
.forget-password-link:focus {
    color: #5a940a;
    text-decoration: underline;
}
.auth-footer {
    padding: 1.2rem 1rem;
    text-align: center;
    background: var(--bg-dark, #1e1e1e);
    border-top: 1px solid var(--border-color, #333);
}
.auth-footer p {
    color: var(--text-gray, #ddd);
    font-size: 0.9rem;
    margin: 0.4rem 0;
}
.auth-footer .link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer .link:hover {
    text-decoration: underline;
}
.forget-password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    min-height: 70vh;
    margin-top: 3rem;
}
.field-error {
    color: #dc2626;
    font-weight: bold;
    margin-bottom:1rem;
}
#authLabel{
    color: var(--text-gray);
}
@media (max-width: 768px) {
    .auth-container {
        min-height: 70vh;
    }

    .auth-card {
        max-width: 100%;
        border-radius: 10px;
        margin: 0 1rem;
        box-shadow: 0 0 15px rgba(0, 255, 120, 0.2);
    }

    .auth-header h2 {
        font-size: 1.4rem;
    }

    .input-group input {
        font-size: 0.95rem;
    }
}
@media (max-width: 480px) {
    .auth-container {
        min-height: 70vh;
    }

    .auth-card {
        margin: 0 0.5rem;
    }

    .auth-form {
        padding: 1rem;
    }

    .auth-header i {
        font-size: 1.6rem;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .form-options {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .auth-checkbox-label {
        align-items: flex-start;
        gap: 4px;
        line-height: 1.1;
    }

    .forget-password-link {
        margin-top: 0.2rem;
        align-self: flex-start;
        font-size: 0.7rem;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}