/* ========== LAYOUT AUTENTICAÇÃO ========== */
.auth-layout {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    box-sizing: border-box;
    border-radius: 10px;
}

.auth-image {
    flex: 0 0 60%;
    border-radius: 10px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-panel {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2.5rem;
    background: var(--header-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.auth-panel .login-brand {
    text-align: center;
    width: 100%;
    max-width: 320px;
    margin-bottom: 0.5rem;
}

.auth-panel .login-brand img {
    width: 85px;
}

.auth-panel .login-desc {
    margin-top: 0.25rem;
}

.auth-panel .login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 320px;
}

.auth-panel .form-group {
    width: 100%;
}

.auth-panel .form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 1rem;
}

.auth-panel .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--title);
    font-size: 0.95rem;
}

/* ========== CAMPO SENHA ========== */
.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

.eye-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* ========== DIVIDER ========== */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    color: var(--muted);
    padding: 0 10px;
    font-size: 0.9rem;
}

/* ========== BOTÃO GOOGLE ========== */
.btn-google {
    width: 100%;
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.06s;
}

.btn-google:hover {
    background: #f6f6f6;
    transform: translateY(-1px);
}

.google-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* ========== SIGNUP PROMPT ========== */
.signup-prompt {
    text-align: center;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.signup-link {
    color: var(--title);
    text-decoration: none;
    cursor: pointer;
}

.signup-link:hover {
    text-decoration: underline;
}

.text-accent {
    color: var(--accent);
    text-decoration: none;
}

.text-accent:hover {
    text-decoration: underline;
}

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 1.25rem;
}

.modal {
    width: 100%;
    max-width: 640px;
    background: var(--header-bg);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    color: var(--text);
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.6rem;
    cursor: pointer;
}

/* ========== FORM SIGNUP ========== */
.signup-form .form-group {
    margin-bottom: 0.85rem;
}

.signup-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--title);
}

.signup-form input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.dob-row {
    display: flex;
    gap: 0.5rem;
}

.dob-row > div {
    flex: 1;
}

.form-error {
    color: #ff8b8b;
    font-size: 0.85rem;
    min-height: 18px;
    margin-top: 6px;
}

.modal .form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 900px) {
    .auth-layout {
        gap: 1rem;
        max-width: 920px;
        margin: 1.5rem;
    }

    .auth-image {
        flex: 0 0 55%;
    }

    .auth-panel {
        flex: 0 0 45%;
    }
}

@media (max-width: 720px) {
    .auth-layout {
        flex-direction: column;
        align-items: center;
        margin: 1rem;
    }

    .auth-image {
        width: 100%;
        flex: 0 0 auto;
        max-height: 40vh;
    }

    .auth-panel {
        width: 100%;
        flex: 0 0 auto;
    }

    .modal {
        max-width: 92%;
        padding: 1rem;
    }

    .dob-row {
        flex-direction: column;
    }
}
