/**
 * Admin Login & App Shell Styles
 * Extraído de index.html — NÃO edite estilos inline no HTML, edite aqui.
 *
 * Ordem de carga:
 *   1. assets/style.css         (variáveis globais, layout do painel)
 *   2. admin-components.css     (KPI, modal, navegação)
 *   3. admin-login.css  ← este  (tela de login + animações globais)
 */

/* ── Reset mínimo ───────────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Shell ──────────────────────────────────────────────────────────────────── */
body {
    background-color: #fbfcfc;
    height: 100vh;
    overflow: hidden;
}

/* ── Troca de telas ─────────────────────────────────────────────────────────── */
.screen {
    display: none;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.screen.active {
    display: flex !important;
}

/* ── Login card ─────────────────────────────────────────────────────────────── */
.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    border-radius: 32px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.2);
}

.header-icon {
    width: 56px;
    height: 56px;
    background: #23585C;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(35, 88, 92, 0.2);
}

.login-card h1 {
    color: #23585C;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.subtitle {
    color: #7fa3a6;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 40px;
    text-align: center;
}

/* ── Input de senha ─────────────────────────────────────────────────────────── */
.input-group {
    width: 100%;
    position: relative;
    margin-bottom: 24px;
}

.input-label {
    display: block;
    color: #7fa3a6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    padding-left: 4px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9cbabc;
    transition: color 0.2s ease;
}

input[type="password"] {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: #fcfdfe;
    border: 1px solid #cbe0de;
    border-radius: 12px;
    color: #23585C;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

input[type="password"]:focus {
    background: #ffffff;
    border-color: #23585C;
    box-shadow: 0 0 0 4px rgba(35, 88, 92, 0.05);
}

input[type="password"]:focus + svg {
    color: #23585C;
}

input[type="password"]::placeholder {
    color: #9cbabc;
}

/* ── Botão de login ─────────────────────────────────────────────────────────── */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: #23585C;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(35, 88, 92, 0.2);
}

.btn-submit:hover {
    background: #1a4447;
    box-shadow: 0 12px 24px rgba(35, 88, 92, 0.3);
    transform: translateY(-2px);
}

/* ── Rodapé de status ───────────────────────────────────────────────────────── */
.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9cbabc;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.footer-status svg {
    color: #23585C;
}

/* ── Animações globais ──────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(204, 51, 51, 0.5);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 0 6px rgba(204, 51, 51, 0);
    }
}

@keyframes pulse-border {
    0%, 100% {
        border-left-color: #cc3333;
        box-shadow: none;
    }
    50% {
        border-left-color: #ff6666;
        box-shadow: -3px 0 10px rgba(204, 51, 51, 0.4);
    }
}

.pulse {
    animation: pulse-badge 1.2s infinite !important;
}
