/**
 * ARCA ACADEMY - AUTH PAGES LIGHT THEME
 * Tema claro para páginas de autenticação (login, signup, etc)
 * Cores oficiais do branding Arca Academy
 */

body {
    background: linear-gradient(180deg, var(--parchment) 0%, #E8E4DB 50%, #DDD9CC 100%) !important;
    min-height: 100vh;
    padding-top: 0 !important;
}

.navbar.bg-primary {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(197, 157, 95, 0.2) !important;
}

footer.bg-primary {
    background: #FFFFFF !important;
    border-top: 1px solid rgba(197, 157, 95, 0.1);
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
}

main > .container { max-width: 100% !important; padding: 0 !important; }

.auth-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
}

.auth-container::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(197, 157, 95, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.auth-container::after {
    content: '';
    position: fixed;
    bottom: -15%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(160, 92, 69, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease forwards;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--antique-gold) 0%, var(--terracotta) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 30px rgba(197, 157, 95, 0.3);
}

.auth-logo img { width: 40px; height: 40px; border-radius: 8px; }

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--deep-navy) !important;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    color: rgba(27, 42, 65, 0.7) !important;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(197, 157, 95, 0.25) !important;
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
    box-shadow: 0 8px 32px rgba(27, 42, 65, 0.08) !important;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 157, 95, 0.45), rgba(160, 92, 69, 0.35), transparent);
}

.signup-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(197, 157, 95, 0.08) !important;
    border-radius: 12px;
    border: 1px solid rgba(197, 157, 95, 0.2) !important;
}

.signup-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(27, 42, 65, 0.85) !important;
}

.signup-benefit i { color: #10B981 !important; font-size: 1rem; }

.auth-form .form-group { margin-bottom: 1.25rem; }

.auth-form .form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(27, 42, 65, 0.9) !important;
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    width: 100%;
    background: #FFFFFF !important;
    border: 1px solid rgba(197, 157, 95, 0.35) !important;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--deep-navy) !important;
    transition: all 0.3s ease;
}

.auth-form .form-control::placeholder { color: #94A3B8 !important; }

.auth-form .form-control:focus {
    background: #FFFFFF !important;
    border-color: var(--antique-gold) !important;
    box-shadow: 0 0 0 4px rgba(197, 157, 95, 0.18) !important;
    outline: none;
    color: var(--deep-navy) !important;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-options .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(27, 42, 65, 0.7) !important;
}

.auth-options a {
    color: var(--antique-gold) !important;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.auth-options a:hover { 
    color: #b08c52 !important;
    text-decoration: underline;
}

.password-hint {
    font-size: 0.8rem;
    color: rgba(27, 42, 65, 0.6) !important;
    margin-top: 0.5rem;
}

.btn-auth-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--antique-gold) 0%, var(--terracotta) 100%) !important;
    border: none;
    color: white !important;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(197, 157, 95, 0.3);
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(197, 157, 95, 0.4);
}

.auth-terms {
    font-size: 0.8rem;
    color: rgba(27, 42, 65, 0.65) !important;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

.auth-terms a { color: var(--antique-gold) !important; text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.auth-footer p {
    color: rgba(27, 42, 65, 0.65) !important;
    font-size: 0.95rem;
    margin: 0;
}

.auth-footer a {
    color: var(--antique-gold) !important;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover { color: #b08c52 !important; }

.auth-form .errorlist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.auth-form .errorlist li {
    color: #DC2626 !important;
    font-size: 0.85rem;
}

/* Mensagens de erro/sucesso */
.auth-messages .alert {
    border-radius: 12px;
    border: none;
    animation: fadeInUp 0.3s ease-out;
}

.auth-messages .alert-error,
.auth-messages .alert-danger {
    background: #FEE2E2 !important;
    color: #991B1B !important;
    border-left: 4px solid #DC2626 !important;
}

.auth-messages .alert-success {
    background: #D1FAE5 !important;
    color: #065F46 !important;
    border-left: 4px solid #10B981 !important;
}

.auth-messages .alert-warning {
    background: #FEF3C7 !important;
    color: #92400E !important;
    border-left: 4px solid #F59E0B !important;
}

.auth-messages .alert-info {
    background: #f5ecd7 !important;
    color: var(--deep-navy) !important;
    border-left: 4px solid var(--antique-gold) !important;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .auth-card { padding: 1.5rem; border-radius: 20px; }
    .auth-title { font-size: 1.5rem; }
}
