/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores */
    --primary:       #009292;
    --primary-dark:  #007575;
    --primary-light: #00b8b8;
    --primary-bg:    rgba(0, 146, 146, 0.06);
    --dark:          #0a0e27;
    --dark-soft:     #1a1e37;
    --gray-700:      #374151;
    --gray-500:      #6b7280;
    --gray-300:      #d1d5db;
    --gray-100:      #f3f4f6;
    --white:         #ffffff;
    --red:           #ef4444;
    --green:         #22c55e;

    /* Fibonacci spacing (base 4px) */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-4:  16px;
    --sp-8:  32px;
    --sp-16: 64px;
    --sp-32: 128px;

    /* Fibonacci border-radius */
    --r-1:   4px;
    --r-2:   8px;
    --r-4:   16px;
    --r-8:   32px;
    --r-pill: 9999px;

    --transition: 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-700);
    background: var(--white);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary);
}

.hidden {
    display: none !important;
}

/* ===== LAYOUT ===== */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== BRAND PANEL ===== */
.auth-brand {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-16);
}

.brand-content {
    display: flex;
    flex-direction: column;
    max-width: 420px;
}

/* Logo dentro do brand panel */
.brand-logo {
    display: block;
    margin-bottom: 42px;
}

.brand-logo-img {
    height: 104px;
    width: auto;
    display: block;
}

.brand-content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--sp-4);
}

.brand-content p {
    font-size: 16px;
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: var(--sp-8);
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 500;
}

/* ===== FORM PANEL ===== */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-16);
    position: relative;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

.auth-form-container h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--sp-2);
}

.auth-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: var(--sp-8);
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: var(--sp-4);
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--sp-1);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--sp-2) var(--sp-4);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--r-2);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--dark);
    background: var(--white);
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 146, 146, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-300);
}

/* Wrapper olhinho */
.input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

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

.btn-eye {
    position: absolute;
    right: var(--sp-4);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--gray-500);
    transition: color var(--transition);
}

.btn-eye:hover {
    color: var(--gray-700);
}

.btn-eye svg {
    width: 18px;
    height: 18px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-8);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 13px;
    color: var(--gray-500);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
}

.forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

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

/* ===== BUTTONS ===== */
.btn-submit {
    width: 100%;
    padding: var(--sp-4);
    background: var(--primary);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--r-2);
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin: var(--sp-8) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.auth-divider span {
    font-size: 13px;
    color: var(--gray-500);
}

.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--r-2);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    border-color: var(--gray-500);
    background: var(--gray-100);
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    color: var(--gray-500);
    margin-top: var(--sp-8);
}

.auth-switch a {
    font-weight: 700;
    color: var(--primary);
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ===== EMAIL CONFIRM ===== */
.email-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-4);
}

.email-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-2);
}

.email-confirm-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

.email-confirm h1 {
    margin-bottom: 0;
}

.email-confirm .auth-subtitle {
    margin-bottom: 0;
}

.email-confirm strong {
    color: var(--dark);
}

.email-confirm-hint {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: var(--sp-4);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: var(--sp-8);
    right: var(--sp-8);
    padding: var(--sp-4) var(--sp-8);
    border-radius: var(--r-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: var(--sp-8) var(--sp-8);
        min-height: auto;
    }

    .brand-content p,
    .brand-features {
        display: none;
    }

    .brand-logo-img {
        height: var(--sp-8); /* 32px no mobile */
    }

    .brand-content h2 {
        font-size: 22px;
    }

    .auth-form-panel {
        padding: var(--sp-8);
    }
}
