/* ============================================
   AUTH PAGES - Login & Welcome (standalone)
   Nao depende do custom.css
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    background: #0f0c29;
    background: linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    -webkit-font-smoothing: antialiased;
}

/* --- Layout split: left (branding) + right (form) --- */
.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left panel - branding */
.auth-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.auth-brand::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 500px; height: 500px;
    background: rgba(124,58,237,0.15);
    border-radius: 50%;
    filter: blur(80px);
}
.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 400px; height: 400px;
    background: rgba(6,182,212,0.1);
    border-radius: 50%;
    filter: blur(80px);
}
.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 400px;
}
.auth-brand-logo {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    color: #fff;
    box-shadow: 0 20px 40px rgba(124,58,237,0.3);
}
.auth-brand h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.auth-brand p {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}
.auth-brand-features {
    margin-top: 2.5rem;
    text-align: left;
}
.auth-brand-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.auth-brand-features .feature-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #a78bfa;
    flex-shrink: 0;
}

/* Right panel - form */
.auth-form-panel {
    width: 480px;
    min-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: #fff;
    position: relative;
}
.auth-form-inner {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}
.auth-form-inner h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}
.auth-form-inner .auth-subtitle {
    color: #94a3b8;
    font-size: 0.92rem;
    margin-bottom: 2rem;
}

/* Form fields */
.auth-field {
    margin-bottom: 1.25rem;
}
.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}
.auth-input-wrap {
    position: relative;
}
.auth-input-wrap .auth-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}
.auth-input-wrap input {
    width: 100%;
    padding: 0.72rem 0.9rem 0.72rem 2.7rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #1a1a2e;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
}
.auth-input-wrap input:focus {
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.12);
}
.auth-input-wrap input::placeholder {
    color: #cbd5e1;
}

/* Submit button */
.auth-btn {
    width: 100%;
    padding: 0.78rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(124,58,237,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124,58,237,0.4);
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
}
.auth-btn:active {
    transform: translateY(0);
}

/* Alert */
.auth-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer text */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Welcome page specific */
.welcome-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    text-align: center;
}
.welcome-box {
    max-width: 460px;
    width: 100%;
}
.welcome-box .auth-brand-logo {
    margin-bottom: 2.5rem;
}
.welcome-box h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}
.welcome-box p {
    color: rgba(255,255,255,0.55);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
.welcome-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2.5rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(124,58,237,0.35);
    transition: all 0.25s ease;
}
.welcome-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(124,58,237,0.45);
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .auth-brand { display: none; }
    .auth-form-panel {
        width: 100%;
        min-width: 100%;
    }
}
@media (max-width: 500px) {
    .auth-form-panel { padding: 1.5rem 1.25rem; }
    .auth-form-inner h2 { font-size: 1.25rem; }
    .auth-form-inner .auth-subtitle { font-size: 0.82rem; }
    .auth-input-wrap input { padding: 0.65rem 0.8rem 0.65rem 2.5rem; font-size: 16px; /* prevent iOS zoom */ }
    .auth-btn { padding: 0.7rem; font-size: 0.9rem; }
    .auth-field label { font-size: 0.78rem; }
    .login-card .login-logo, .auth-brand-logo { width: 56px; height: 56px; font-size: 1.3rem; border-radius: 14px; }
    .welcome-box h1 { font-size: 1.6rem; }
    .welcome-box p { font-size: 0.88rem; }
    .welcome-btn { padding: 0.75rem 2rem; font-size: 0.95rem; }
    .auth-footer { font-size: 0.7rem; }
}

/* --- Animation --- */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-animate {
    animation: slideUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.auth-animate-delay { animation-delay: 0.15s; }
