/* BookBella Auth Center - Design Centralizado para Cadastro e Recuperação */
/* Paleta: #001F5C (Azul Marinho) | #FF85A2 (Rosa Pink) | #FFD6E5 (Rosa Claro) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --navy-deep: #000d2b;
    --navy-dark: #001542;
    --navy: #001F5C;
    --navy-light: #003080;
    
    --pink: #FF85A2;
    --pink-dark: #FF5C85;
    --pink-light: #FFD6E5;
    --pink-soft: #FFE8F0;
    
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
    position: relative;
    overflow-x: hidden;
}

body {
    overflow-y: auto;
}

/* Orbs estáticos */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--pink);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--pink-light);
    bottom: -150px;
    left: -100px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(255, 133, 162, 0.4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Partículas estáticas */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--pink-light);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--pink);
    opacity: 0.3;
}

.particles span:nth-child(1) { left: 10%; top: 10%; }
.particles span:nth-child(2) { left: 20%; top: 80%; }
.particles span:nth-child(3) { left: 30%; top: 30%; }
.particles span:nth-child(4) { left: 70%; top: 70%; }
.particles span:nth-child(5) { left: 80%; top: 20%; }
.particles span:nth-child(6) { left: 50%; top: 90%; }
.particles span:nth-child(7) { left: 90%; top: 50%; }
.particles span:nth-child(8) { left: 15%; top: 60%; }
.particles span:nth-child(9) { left: 85%; top: 40%; }
.particles span:nth-child(10) { left: 40%; top: 15%; }

/* Container Central */
.auth-center-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Card Único Premium */
.auth-mega-card {
    width: 100%;
    max-width: 1000px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 252, 253, 0.95) 50%,
        rgba(255, 250, 252, 0.92) 100%);
    border-radius: var(--radius);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 50px 100px rgba(0, 31, 92, 0.25),
        0 0 0 1px rgba(255, 133, 162, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        0 0 60px rgba(255, 133, 162, 0.15);
    backdrop-filter: blur(40px) saturate(200%);
    overflow: hidden;
    display: flex;
    position: relative;
}

/* Glow externo do card */
.auth-mega-card::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: linear-gradient(135deg, 
        rgba(255, 133, 162, 0.5) 0%, 
        rgba(255, 214, 229, 0.3) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 214, 229, 0.3) 75%,
        rgba(255, 133, 162, 0.5) 100%);
    filter: blur(50px);
    z-index: -2;
    opacity: 0.6;
}

/* Brilho superior */
.auth-mega-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 133, 162, 0.9), 
        rgba(255, 214, 229, 1),
        rgba(255, 133, 162, 0.9), 
        transparent);
    box-shadow: 0 0 20px rgba(255, 133, 162, 0.5);
}

/* Seção Esquerda - Info e Logo */
.auth-info-section {
    flex: 0 0 380px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(0, 31, 92, 0.08);
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(255, 250, 252, 0.4) 50%,
        rgba(255, 245, 248, 0.3) 100%);
    position: relative;
}

/* Decorative line on left */
.auth-info-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background: linear-gradient(180deg,
        transparent,
        rgba(255, 133, 162, 0.6) 20%,
        rgba(255, 133, 162, 0.9) 50%,
        rgba(255, 133, 162, 0.6) 80%,
        transparent);
}

.logo-section {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
}

.logo-glow-ring {
    position: absolute;
    inset: -15px;
    background: conic-gradient(from 0deg, var(--pink), var(--pink-light), var(--pink-dark), var(--pink));
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.5;
}

.logo-section img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 30px rgba(255, 133, 162, 0.4));
}

.brand-section-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.brand-section-title span {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline-section {
    font-size: 13px;
    color: var(--navy-light);
    opacity: 0.8;
    margin-bottom: 24px;
    max-width: 280px;
    line-height: 1.5;
}

/* Main Headline */
.info-headline {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.2;
}

.info-headline span {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.info-subtitle {
    font-size: 14px;
    color: var(--navy);
    opacity: 0.7;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Stats section */
.info-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 133, 162, 0.2);
    border-radius: var(--radius);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--pink);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--navy-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Feature section title */
.features-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 280px;
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 133, 162, 0.2);
    border-radius: 10px;
    transition: all 0.3s var(--ease-out-expo);
    text-align: center;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 133, 162, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 133, 162, 0.25);
}

.feature-box-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 133, 162, 0.4);
}

.feature-box-icon svg {
    width: 18px;
    height: 18px;
}

.feature-box-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
}

.feature-box-desc {
    font-size: 11px;
    color: var(--navy-light);
    opacity: 0.8;
    text-align: center;
    line-height: 1.3;
}

/* Seção Direita - Formulário */
.auth-form-section {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header-centered {
    text-align: center;
    margin-bottom: 16px;
}

.form-icon-large {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink-light), var(--pink-soft));
    border-radius: 10px;
    color: var(--pink-dark);
    box-shadow: 
        0 8px 24px rgba(255, 133, 162, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.form-icon-large svg {
    width: 24px;
    height: 24px;
}

.form-title-large {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.form-subtitle-large {
    font-size: 12px;
    color: var(--navy-light);
    opacity: 0.7;
}

/* Formulário */
.auth-form-centered {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-field-large {
    position: relative;
}

.form-label-large {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper-large {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-large {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    color: var(--navy-light);
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: 2;
}

.input-icon-large svg {
    width: 18px;
    height: 18px;
}

.form-input-large {
    width: 100%;
    padding: 12px 12px 12px 40px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--navy);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 250, 252, 0.98) 100%);
    border: 2px solid rgba(0, 31, 92, 0.1);
    border-radius: var(--radius);
    outline: none;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        0 2px 8px rgba(0, 31, 92, 0.04);
}

.form-input-large::placeholder {
    color: rgba(0, 31, 92, 0.4);
}

.form-input-large:hover {
    border-color: rgba(255, 133, 162, 0.4);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 1),
        0 4px 16px rgba(255, 133, 162, 0.15);
}

.form-input-large:focus {
    border-color: var(--pink);
    background: var(--white);
    box-shadow: 
        0 0 0 5px rgba(255, 133, 162, 0.15),
        0 12px 32px rgba(255, 133, 162, 0.2);
    transform: translateY(-2px);
}

.form-input-large:focus + .input-icon-large,
.input-wrapper-large:focus-within .input-icon-large {
    color: var(--pink);
    opacity: 1;
    transform: scale(1.15);
}

.toggle-password-large {
    position: absolute;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--navy-light);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.toggle-password-large svg {
    width: 18px;
    height: 18px;
}

.toggle-password-large:hover {
    opacity: 1;
    background: rgba(255, 133, 162, 0.1);
    color: var(--pink);
}

/* Select */
.form-select-large {
    width: 100%;
    padding: 12px 48px 12px 12px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--navy);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 250, 252, 0.98) 100%);
    border: 2px solid rgba(0, 31, 92, 0.1);
    border-radius: var(--radius);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23001F5C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 48px;
}

.form-select-large:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 5px rgba(255, 133, 162, 0.15);
}

/* Form Row (side by side fields) */
.form-row-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Account Type Selector */
.account-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.account-type-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(0, 31, 92, 0.1);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    color: var(--navy);
}

.account-type-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.account-type-btn:hover {
    border-color: rgba(255, 133, 162, 0.4);
    background: rgba(255, 255, 255, 0.9);
}

.account-type-btn.active {
    background: linear-gradient(135deg, var(--pink-light), var(--pink-soft));
    border-color: var(--pink);
    box-shadow: 0 4px 16px rgba(255, 133, 162, 0.25);
}

.account-type-btn.active svg {
    color: var(--pink-dark);
}

.account-type-title {
    font-size: 13px;
    font-weight: 600;
}

/* Checkbox */
.checkbox-wrapper-large {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    margin-top: 4px;
}

.checkbox-wrapper-large input {
    display: none;
}

.custom-checkbox-large {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 31, 92, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox-large::after {
    content: '✓';
    font-size: 12px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s var(--ease-out-expo);
}

.checkbox-wrapper-large input:checked + .custom-checkbox-large {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    border-color: var(--pink);
    box-shadow: 0 4px 15px rgba(255, 133, 162, 0.35);
}

.checkbox-wrapper-large input:checked + .custom-checkbox-large::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label-large {
    font-size: 12px;
    color: var(--navy-light);
    line-height: 1.4;
}

.checkbox-label-large a {
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label-large a:hover {
    color: var(--pink-dark);
}

/* Botão Submit */
.submit-btn-large {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    color: white;
    background: linear-gradient(135deg, 
        var(--navy) 0%, 
        var(--navy-light) 25%,
        var(--pink-dark) 50%,
        var(--pink) 75%,
        var(--pink-dark) 100%);
    background-size: 400% 400%;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 
        0 8px 30px rgba(0, 31, 92, 0.4),
        0 0 0 2px rgba(255, 133, 162, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.submit-btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.5), 
        transparent);
    transition: left 0.8s ease;
}

.submit-btn-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 31, 92, 0.5),
        0 0 0 2px rgba(255, 133, 162, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.submit-btn-large:hover::before {
    left: 100%;
}

.submit-btn-large:active {
    transform: translateY(-1px) scale(0.98);
}

.submit-btn-large svg {
    width: 20px;
    height: 20px;
}

/* Form Options (checkbox + link row) */
.form-options-large {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0;
}

.recovery-link-large {
    font-size: 13px;
    font-weight: 600;
    color: var(--pink);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.recovery-link-large:hover {
    color: var(--pink-dark);
    text-decoration: underline;
}

/* Footer */
.form-footer-large {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 31, 92, 0.08);
}

.footer-text-large {
    font-size: 13px;
    color: var(--navy-light);
}

.footer-link-large {
    color: var(--pink);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link-large:hover {
    color: var(--pink-dark);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pink);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--pink-dark);
    transform: translateX(-4px);
}

/* Alertas */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px 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); }
}

/* Responsive */
@media (max-width: 900px) {
    .auth-center-container {
        padding: 16px;
        align-items: center;
    }
    
    .auth-mega-card {
        flex-direction: column;
        max-width: 480px;
    }
    
    .auth-info-section {
        flex: none;
        padding: 24px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 31, 92, 0.08);
    }
    
    .auth-info-section::before {
        display: none;
    }
    
    .logo-section {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }
    
    .brand-section-title {
        font-size: 24px;
    }
    
    .tagline-section {
        margin-bottom: 16px;
        font-size: 12px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
        gap: 8px;
    }
    
    .feature-box {
        padding: 10px 6px;
    }
    
    .auth-form-section {
        padding: 20px 20px;
        justify-content: flex-start;
    }
    
    .form-header-centered {
        margin-bottom: 12px;
    }
    
    .form-icon-large {
        width: 48px;
        height: 48px;
        margin-bottom: 8px;
    }
    
    .form-title-large {
        font-size: 20px;
    }
    
    .form-row-large {
        grid-template-columns: 1fr;
    }
    
    .account-type-selector {
        margin-bottom: 8px;
        gap: 6px;
    }
    
    .account-type-btn {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .account-type-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .account-type-title {
        font-size: 12px;
    }
    
    .auth-form-centered {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .feature-box {
        padding: 12px 8px;
    }
    
    .feature-box-icon {
        width: 32px;
        height: 32px;
    }
    
    .feature-box-text {
        font-size: 11px;
    }
    
    .account-type-selector {
        gap: 8px;
    }
    
    .account-type-btn {
        padding: 12px;
    }
}
