/* ─── Auth / Login ────────────────────────────────────────
   Módulo: App/Modulos/Autenticacao
   Página: /auth/login (tela de acesso restrito)
   Override do layout padrão para apresentação fullscreen.
   ───────────────────────────────────────────────────────── */

/* Override para Login Full Screen - Estilo Dark Premium */
.layout-container {
    height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
        url("/static/layout/img/login-bg.webp");
    background-size: cover;
    background-position: center;
    background-color: #0f172a; /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Esconde elementos de layout padrão */
.sidebar,
.topbar,
.flash-container {
    display: none !important;
}

.main-content {
    margin: 0 !important;
    flex: none;
    width: 90%;
    max-width: 600px;
    padding: 0;
}

/* Card Dark Glass */
.login-card {
    background: rgba(31, 41, 55, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    color: white;
}

.login-header {
    margin-bottom: 2rem;
}

/* Inputs Dark */
.form-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 500;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #111827;
    color: white;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
    background: #0f172a;
}

.form-input::placeholder {
    color: #4b5563;
}

/* Botão Premium */
.btn-login {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    justify-content: center;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transition:
        transform 0.1s,
        box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-login:active {
    transform: translateY(0);
}

/* Links e Extras */
.forgot-link {
    color: #60a5fa;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #93c5fd;
}

.footer-text {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Flash Messages no contexto Dark */
.login-flash {
    margin-bottom: 1.5rem;
    text-align: left;
}

.flash-item {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal de Recuperação */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-origin: center;
}

.login-recovery-icon-shell {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #60a5fa;
}

.login-recovery-icon {
    font-size: 1.5rem;
}

.login-recovery-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    text-align: left;
}

.login-recovery-message-error {
    background: rgba(127, 29, 29, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(127, 29, 29, 0.3);
}

.login-recovery-message-success {
    background: rgba(6, 78, 59, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(6, 78, 59, 0.3);
}

/* Primeiro acesso */
.setup-note {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #bfdbfe;
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.setup-note i {
    margin-top: 0.15rem;
    color: #60a5fa;
}

.form-error {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #fca5a5;
}
