/* === RESET E CONFIGURAÇÕES GLOBAIS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais - Marrom Premium */
    --primary: #8B4513;
    --primary-dark: #6B3410;
    --primary-light: #A0522D;
    --primary-lighter: #D2691E;
    --primary-glow: rgba(139, 19, 29, 0.4);
    
    /* Neutros */
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E8E8E8;
    --gray-300: #D1D1D1;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Estados */
    --success: #16A34A;
    --success-light: #DCFCE7;
    --error: #DC2626;
    --error-light: #FEE2E2;
    --warning: #D97706;
    --info: #2563EB;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(139, 69, 19, 0.3);
    
    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #FAF7F5 0%, #F5F0EB 100%);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

body.auth-gate-active {
    overflow: hidden;
    background: #fff;
}

body.auth-gate-active .auth-container {
    display: none;
}

.auth-mode-gate {
    position: relative;
    z-index: 10020;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(139, 69, 19, 0.08), transparent 22%),
        radial-gradient(circle at bottom right, rgba(160, 82, 45, 0.06), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #fbf8f5 100%);
}

.auth-mode-gate[hidden] {
    display: none !important;
}

.auth-mode-shell {
    width: min(100%, 1120px);
    margin: auto;
    padding: 44px 28px;
    color: var(--gray-900);
}

.auth-mode-gate-topline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.auth-mode-brand {
    height: 40px;
    width: auto;
    display: block;
}

.auth-mode-shell h1 {
    font-size: clamp(1.55rem, 4vw, 2.2rem);
    line-height: 1.1;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--gray-900);
}

.auth-mode-hero {
    display: block;
    margin-bottom: 30px;
}

.auth-mode-copy p {
    margin-bottom: 0;
}

.auth-mode-shell p {
    font-size: 0.95rem;
    color: var(--gray-600);
    max-width: 52ch;
    margin-bottom: 22px;
}

.auth-mode-gate-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-mode-option {
    width: 100%;
    border: 1px solid #eadfd4;
    border-radius: 22px;
    background: #fff;
    color: var(--gray-900);
    padding: 18px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.04);
    min-height: 124px;
}

.auth-mode-option:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 69, 19, 0.25);
    background: #fffdfb;
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

.auth-mode-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6efe8;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.auth-mode-option-icon.owner {
    background: linear-gradient(135deg, #f6eadb, #fff8f1);
}

.auth-mode-option-icon.collaborator {
    background: linear-gradient(135deg, #eef5fb, #ffffff);
}

.auth-mode-option-content strong {
    display: block;
    font-size: 1.08rem;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.auth-mode-option-content small {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.auth-mode-option i.fa-arrow-right {
    opacity: 0.8;
    color: var(--primary-dark);
}

.auth-mode-option--owner {
    background: linear-gradient(135deg, #fff, #fffaf5);
}

.auth-mode-option--collaborator {
    background: linear-gradient(135deg, #fff, #fbfdff);
}

.auth-mode-gate-footnote {
    margin-top: 18px;
    font-size: 0.86rem;
    color: var(--gray-500);
    text-align: center;
}

.auth-mode-gate.is-closing {
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 180ms ease, transform 180ms ease;
}

@media (max-width: 640px) {
    .auth-mode-shell {
        padding: 30px 20px;
    }

    .auth-mode-hero {
        margin-bottom: 24px;
    }

    .auth-mode-gate-topline {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .auth-mode-gate-options {
        grid-template-columns: 1fr;
    }

    .auth-mode-option {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .auth-mode-option i.fa-arrow-right {
        grid-column: 2;
        justify-self: end;
        margin-top: -10px;
    }
}

/* === LAYOUT PRINCIPAL === */
.auth-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 100vh;
    position: relative;
}

/* === PAINEL ESQUERDO - FLUID GRADIENT === */
.info-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #4A2508 100%);
}

/* Fluid Background SVG */
.fluid-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.fluid-background svg {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

/* Blob Animations - Fluid Motion */
.blob {
    transform-origin: center;
}

.blob-1 {
    animation: blob1 25s ease-in-out infinite;
}

.blob-2 {
    animation: blob2 20s ease-in-out infinite;
}

.blob-3 {
    animation: blob3 22s ease-in-out infinite;
}

.blob-4 {
    animation: blob4 18s ease-in-out infinite;
}

.blob-5 {
    animation: blob5 24s ease-in-out infinite;
}

.blob-6 {
    animation: blob6 21s ease-in-out infinite;
}

@keyframes blob1 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% { 
        transform: translate(80px, -60px) scale(1.15) rotate(90deg);
    }
    50% { 
        transform: translate(-40px, 80px) scale(0.9) rotate(180deg);
    }
    75% { 
        transform: translate(60px, 40px) scale(1.1) rotate(270deg);
    }
}

@keyframes blob2 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% { 
        transform: translate(100px, 80px) scale(1.2) rotate(120deg);
    }
    66% { 
        transform: translate(-80px, -40px) scale(0.85) rotate(240deg);
    }
}

@keyframes blob3 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    20% { 
        transform: translate(-70px, 50px) scale(1.1) rotate(72deg);
    }
    40% { 
        transform: translate(50px, -80px) scale(0.95) rotate(144deg);
    }
    60% { 
        transform: translate(-30px, -30px) scale(1.15) rotate(216deg);
    }
    80% { 
        transform: translate(80px, 60px) scale(0.9) rotate(288deg);
    }
}

@keyframes blob4 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% { 
        transform: translate(90px, -70px) scale(1.25) rotate(180deg);
    }
}

@keyframes blob5 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% { 
        transform: translate(-60px, 90px) scale(1.1) rotate(90deg);
    }
    50% { 
        transform: translate(70px, 30px) scale(0.9) rotate(180deg);
    }
    75% { 
        transform: translate(-40px, -50px) scale(1.2) rotate(270deg);
    }
}

@keyframes blob6 {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% { 
        transform: translate(60px, -80px) scale(1.15) rotate(120deg);
    }
    66% { 
        transform: translate(-50px, 60px) scale(0.9) rotate(240deg);
    }
}

/* Floating Orbs */
.floating-orbs {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
}

.orb-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 15%;
    animation: floatOrb1 15s ease-in-out infinite;
}

.orb-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 70%;
    animation: floatOrb2 12s ease-in-out infinite;
}

.orb-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 10%;
    animation: floatOrb3 18s ease-in-out infinite;
}

.orb-4 {
    width: 40px;
    height: 40px;
    bottom: 20%;
    left: 25%;
    animation: floatOrb4 14s ease-in-out infinite;
}

.orb-5 {
    width: 100px;
    height: 100px;
    bottom: 35%;
    right: 20%;
    animation: floatOrb5 20s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(30px, -40px) scale(1.1); opacity: 0.9; }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(-40px, 30px) scale(0.9); opacity: 0.8; }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(20px, 50px) scale(1.15); opacity: 0.7; }
}

@keyframes floatOrb4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(-30px, -20px) scale(1.2); opacity: 0.8; }
}

@keyframes floatOrb5 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(40px, -30px) scale(0.85); opacity: 0.7; }
}

/* Glass Card Content */
.info-content {
    position: relative;
    z-index: 3;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Section */
.brand-section {
    margin-bottom: 2rem;
    text-align: center;
}

.brand-logo {
    height: 44px;
    width: auto;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.brand-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-weight: 400;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    animation: fadeInLeft 0.6s ease-out both;
}

.feature-item:nth-child(1) { animation-delay: 0.3s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(8px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.feature-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.feature-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    font-weight: 400;
}

/* === PAINEL DE FORMULÁRIOS (DIREITA) === */
.forms-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    background: var(--white);
}

.form-wrapper {
    width: 100%;
    max-width: 440px;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Logo */
.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-brand-logo {
    height: 48px;
    width: auto;
}

/* Tabs Navigation */
.form-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 6px;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    position: relative;
}

.tab-button {
    flex: 1;
    padding: 14px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-500);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.tab-button .tab-text {
    position: relative;
    z-index: 1;
}

.tab-button:hover {
    color: var(--gray-700);
}

.tab-button.active {
    color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: formSlideIn 0.5s ease-out;
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Form Title */
.form-title {
    text-align: left;
}

.form-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1) 0%, rgba(139, 69, 19, 0.05) 100%);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-title h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.form-title p {
    font-size: 15px;
    color: var(--gray-500);
    font-weight: 400;
}

/* Messages */
.messages {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.messages::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.messages.show {
    display: flex;
}

.messages.success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.messages.success::before {
    background: var(--success);
}

.messages.error {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.messages.error::before {
    background: var(--error);
}

.messages.info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--info);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.messages.info::before {
    background: var(--info);
}

.messages i {
    font-size: 18px;
    animation: iconBounce 0.5s ease-out;
}

@keyframes iconBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Floating Label Input */
.input-wrapper.floating {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper.floating input {
    width: 100%;
    padding: 18px 16px 8px 48px;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    outline: none;
}

.input-wrapper.floating label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 400;
    color: var(--gray-400);
    pointer-events: none;
    transition: all var(--transition-fast);
    background: transparent;
    padding: 0 4px;
}

.input-wrapper.floating input:focus,
.input-wrapper.floating input:not(:placeholder-shown) {
    padding: 22px 16px 8px 48px;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-wrapper.floating input:focus ~ label,
.input-wrapper.floating input:not(:placeholder-shown) ~ label {
    top: 10px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-wrapper.floating input:hover:not(:focus) {
    border-color: var(--gray-300);
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--gray-400);
    pointer-events: none;
    transition: color var(--transition-base);
}

.input-wrapper.floating input:focus ~ .field-icon {
    color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
}

/* ===========================
   EMAIL AUTOCOMPLETE DROPDOWN
   =========================== */
.email-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(139,69,19,0.08);
    z-index: 100;
    overflow: hidden;
    animation: suggDrop 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.email-suggestions.visible {
    display: block;
}
@keyframes suggDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.email-sugg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-700);
    cursor: pointer;
    transition: background 0.14s ease, color 0.14s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}
.email-sugg-item:not(:last-child) {
    border-bottom: 1px solid var(--gray-100);
}
.email-sugg-item:hover,
.email-sugg-item.focused {
    background: rgba(139,69,19,0.06);
    color: var(--primary);
}
.email-sugg-item i {
    font-size: 13px;
    color: var(--gray-400);
    flex-shrink: 0;
    transition: color 0.14s ease;
}
.email-sugg-item:hover i,
.email-sugg-item.focused i {
    color: var(--primary);
}
.email-sugg-local {
    font-weight: 600;
    color: inherit;
}
.email-sugg-domain {
    color: var(--gray-400);
    font-size: 14px;
    transition: color 0.14s ease;
}
.email-sugg-item:hover .email-sugg-domain,
.email-sugg-item.focused .email-sugg-domain {
    color: var(--primary-light);
}

.toggle-password:hover {
    color: var(--gray-700);
    background: var(--gray-100);
}

.toggle-password i {
    font-size: 16px;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--gray-300);
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

.strength-fill.weak { width: 33%; background: var(--error); }
.strength-fill.medium { width: 66%; background: var(--warning); }
.strength-fill.strong { width: 100%; background: var(--success); }

.strength-text {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.strength-text.weak { color: var(--error); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    background: var(--white);
}

.checkbox-container:hover .checkbox-custom {
    border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 11px;
}

.checkbox-label {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

.forgot-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-base);
    letter-spacing: -0.1px;
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
}

.submit-btn .btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    transition: all var(--transition-base);
}

.submit-btn .btn-content i {
    transition: transform var(--transition-base);
}

.submit-btn:hover .btn-content i {
    transform: translateX(4px);
}

.submit-btn .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover .btn-shine {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.loading {
    pointer-events: none;
}

.submit-btn.loading .btn-content {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Terms Text */
.terms-text {
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
}

.terms-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-base);
}

.terms-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* === MODAL DE RECUPERAÇÃO === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeInOverlay 0.3s ease-out;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes modalSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-base);
    z-index: 1;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.3);
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: stepFadeIn 0.4s ease-out;
}

@keyframes stepFadeIn {
    from { 
        opacity: 0; 
        transform: translateX(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.step-number.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    transform: scale(1.1);
}

.step-number.completed {
    background: var(--success);
    color: white;
    font-size: 12px;
}

.step-line {
    flex: 1;
    max-width: 50px;
    height: 3px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.step-line.completed {
    background: var(--success);
}

.step-description {
    font-size: 14px;
    color: var(--gray-600);
    text-align: center;
    line-height: 1.6;
}

.step-description strong {
    color: var(--primary);
    font-weight: 600;
}

/* Modal Messages */
.modal-messages {
    display: none;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.modal-messages.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.modal-messages .message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.modal-messages .message.success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.modal-messages .message.error {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.modal-messages .message.info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--info);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.modal-messages .message i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 14px;
}

/* Field Hint */
.field-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.field-hint i {
    font-size: 11px;
}

/* Modal Buttons */
.modal-btn {
    width: 100%;
    padding: 14px 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.modal-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.35);
}

.modal-btn:active {
    transform: translateY(0);
}

.modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-btn .btn-content {
    display: block;
    transition: opacity var(--transition-base);
}

.modal-btn .btn-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-btn.loading .btn-content {
    opacity: 0;
}

.modal-btn.loading .btn-loader {
    display: flex;
}

.modal-btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

/* Code Input */
#codigoRecuperacao {
    text-align: center;
    letter-spacing: 10px;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

/* === QUICK ACCESS PANEL === */
.quick-access-panel {
    animation: formSlideIn 0.4s ease-out;
    width: 100%;
    overflow: hidden;
}

.saved-logins-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
}

.saved-login-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.saved-login-card:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.02) 0%, rgba(139, 69, 19, 0.05) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.saved-login-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.saved-login-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saved-login-avatar-initials {
    color: white;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.saved-login-info {
    flex: 1;
    min-width: 0;
}

.saved-login-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-login-info p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove-login {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-base);
    opacity: 0;
}

.saved-login-card:hover .btn-remove-login {
    opacity: 1;
}

.btn-remove-login:hover {
    background: var(--error-light);
    color: var(--error);
    transform: scale(1.1);
}

.btn-add-new-login {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border: 2px dashed var(--gray-300);
    background: transparent;
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-base);
}

.btn-add-new-login:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 69, 19, 0.03);
}

.btn-add-new-login i {
    font-size: 18px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }
    
    .info-panel {
        display: none;
    }
    
    .forms-panel {
        padding: 1rem 1.5rem 2rem;
        min-height: 100vh;
        background: linear-gradient(180deg, #FAF7F5 0%, var(--white) 100%);
    }
    
    .mobile-logo {
        display: block;
        margin-bottom: 1rem;
    }
    
    .mobile-brand-logo {
        max-width: 120px;
        height: auto;
    }
    
    .form-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .form-tabs {
        margin-bottom: 1.5rem;
        padding: 4px;
    }
    
    .tab-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .form-title h2 {
        font-size: 28px;
    }
    
    .form-content {
        gap: 1.5rem;
    }
}

@media (max-width: 520px) {
    .forms-panel {
        padding: 0.75rem 1rem 1.5rem;
    }
    
    .mobile-brand-logo {
        max-width: 100px;
    }
    
    .form-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .form-title h2 {
        font-size: 24px;
    }
    
    .form-title p {
        font-size: 14px;
    }
    
    .form-tabs {
        padding: 3px;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .input-wrapper.floating input {
        padding: 16px 14px 6px 44px;
        font-size: 14px;
    }
    
    .input-wrapper.floating input:focus,
    .input-wrapper.floating input:not(:placeholder-shown) {
        padding: 20px 14px 6px 44px;
    }
    
    .input-wrapper.floating label {
        left: 44px;
        font-size: 14px;
    }
    
    .field-icon {
        left: 14px;
        font-size: 15px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .submit-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .terms-text {
        font-size: 12px;
    }
    
    /* Modal Mobile */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-container {
        max-width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
        padding: 0 1.25rem 2rem;
        animation: modalFromBottom 0.4s cubic-bezier(0.25, 1.2, 0.5, 1);
    }

    @keyframes modalFromBottom {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .modal-container::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--gray-200);
        border-radius: var(--radius-full);
        margin: 1rem auto 1.25rem;
    }

    .modal-header {
        margin-bottom: 1.25rem;
    }

    .modal-icon-wrapper {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-subtitle {
        font-size: 13px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    #codigoRecuperacao {
        letter-spacing: 8px;
        font-size: 20px;
    }

    .modal-btn {
        padding: 13px 20px;
        font-size: 14px;
    }

    .modal-btn-secondary {
        padding: 11px 16px;
        font-size: 13px;
    }
}

/* Focus Styles for Accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-glow);
    outline-offset: 2px;
}

/* Smooth Scrolling */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
