/* static/css/auth.css */

/* === LAYOUT FIX: Tela Cheia sobre o Base === */
.auth {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9999; /* Garante que fique acima do menu do base.html */
    background: linear-gradient(135deg, #218BA1 0%, #40A9BF 50%, #94CAD5 100%);
    overflow-y: auto; /* Permite rolar se a tela for pequena */
    display: flex;
}

/* === LADO ESQUERDO (Gradiente/Info) === */
.auth-left {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    padding: 40px;

    background: linear-gradient(135deg, #218BA1 0%, #40A9BF 50%, #94CAD5 100%);
}

.auth-left__content { text-align: center; max-width: 500px; }
.auth-left__title { font-size: 36px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; color: white; }
.auth-left__subtitle { font-size: 16px; opacity: 0.9; line-height: 1.6; margin-bottom: 48px; color: white; }

/* Ícones de Feature (Lista no lado esquerdo) */
.feature-item { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; color: rgba(255,255,255,0.95); text-align: left; }
.feature-item i { font-size: 24px; color: #a5f3fc; background: rgba(255,255,255,0.1); padding: 8px; border-radius: 8px; }

/* === LADO DIREITO (Formulário) === */
.auth-right {
    background-color: #ffffff;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    min-height: 100vh;
    position: relative;
}

/* Elementos de Navegação e Ícones */
.top-nav-link {
    position: absolute; top: 40px; left: 40px; color: #218BA1; text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: gap 0.3s;
}
.top-nav-link:hover { gap: 12px; color: #1b7588; }

.main-icon-container { display: flex; justify-content: center; margin-bottom: 24px; }
.main-icon-circle { width: 80px; height: 80px; background-color: #e0f7fa; color: #218BA1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; }

/* Ícone de Sucesso (Verde) */
.success-icon { width: 80px; height: 80px; background-color: #dcfce7; color: #16a34a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; margin-bottom: 24px; margin-left: auto; margin-right: auto; }

/* Títulos e Textos */
h4.form-title { color: #1f2937; font-weight: 700; font-size: 28px; text-align: center; margin-bottom: 12px; }
p.form-subtitle { color: #6b7280; text-align: center; margin-bottom: 32px; font-size: 15px; }

/* Caixa de Informação */
.info-box { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.info-box h6 { font-size: 14px; font-weight: 700; color: #475569; margin-bottom: 8px; }
.info-box p { font-size: 13px; color: #64748b; margin: 0; line-height: 1.5; }

/* Formulários e Botões */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.form-group input { width: 100%; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 15px; transition: all 0.3s ease; }
.form-group input:focus { outline: none; border-color: #218BA1; box-shadow: 0 0 0 4px rgba(33, 139, 161, 0.1); }

.btn-primary { width: 100%; padding: 14px 16px; background: linear-gradient(135deg, #218BA1 0%, #40A9BF 100%); color: white; border: none; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin-bottom: 24px; display: block; text-decoration: none; text-align: center; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(33, 139, 161, 0.4); color: white; }

.btn-outline { width: 100%; padding: 14px 16px; margin-top: 12px; background: transparent; border: 1px solid #e5e7eb; color: #6b7280; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: block; text-align: center; }
.btn-outline:hover { background-color: #f9fafb; color: #374151; border-color: #d1d5db; }

.footer-link { text-align: center; font-size: 14px; color: #6b7280; }
.footer-link a { color: #218BA1; text-decoration: none; font-weight: 600; }
.footer-link a:hover { text-decoration: underline; }

.card-box { background: white; padding: 40px; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); max-width: 500px; text-align: center; width: 100%; }

/* === RESPONSIVIDADE (Mobile) === */
@media (max-width: 992px) {
    .auth-left { display: none !important; }
    .auth-right { width: 100%; background: transparent; padding: 20px; align-items: center; justify-content: center; }
    .auth-card-mobile { background: white; padding: 32px 24px; border-radius: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); width: 100%; max-width: 450px; position: relative; }
    .top-nav-link { position: static; margin-bottom: 24px; display: inline-flex; }

    /* Ajuste para o container de sucesso transparente no mobile */
    .auth-right .card-box { box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
}