/* ============================================================
   === TELA DE LOGIN - MINIMALISTA DARK ===
   ============================================================ */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.login-page {
    background: #121212;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: loginFadeIn 0.3s ease;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   === CARD ===
   ============================================================ */

.login-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 40px 32px;
}

/* ============================================================
   === HEADER (logo + nome) ===
   ============================================================ */

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #2a2a2a;
}

.login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    margin-bottom: 18px;
}

.login-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.login-header p {
    font-size: 13px;
    color: #888;
    margin: 0;
    font-weight: 500;
}

/* ============================================================
   === FORMULÁRIO ===
   ============================================================ */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #e0e0e0;
    transition: border-color 0.15s ease, background 0.15s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.04);
}

.form-group input::placeholder {
    color: #555;
}

/* ============================================================
   === CAMPO DE SENHA COM TOGGLE ===
   ============================================================ */

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 46px;
}

.btn-toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.btn-toggle-password:hover {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

.btn-toggle-password svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* ============================================================
   === MENSAGEM DE ERRO ===
   ============================================================ */

.login-erro {
    padding: 12px 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    animation: loginShake 0.3s ease;
}

@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    75%      { transform: translateX(4px); }
}

/* ============================================================
   === BOTÃO LOGIN ===
   ============================================================ */

.btn-login {
    width: 100%;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: #4a9eff;
    border: 1px solid #4a9eff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.25);
    margin-top: 6px;
}

.btn-login:hover:not(:disabled) {
    background: #3a7edd;
    border-color: #3a7edd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.35);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================
   === LINKS RODAPÉ ===
   ============================================================ */

.login-footer-links {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.link-esqueci {
    background: transparent;
    border: none;
    color: #888;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    padding: 4px 8px;
    transition: color 0.15s ease;
    border-radius: 6px;
}

.link-esqueci:hover {
    color: #4a9eff;
}

/* ============================================================
   === COPYRIGHT ===
   ============================================================ */

.login-copyright {
    text-align: center;
    font-size: 11px;
    color: #555;
    margin: 0;
}

/* ============================================================
   === RESPONSIVO ===
   ============================================================ */

@media (max-width: 480px) {
    .login-page {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-logo {
        width: 60px;
        height: 60px;
    }

    .login-header h1 {
        font-size: 18px;
    }
}