/* Override Bootstrap bg-light en la página de login */
body.bg-light {
    background: #0f1117 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
}

main.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

/* ── Wrapper ─────────────────────────────────────────────────────────────── */

.login-wrap {
    width: 100%;
    max-width: 400px;
}

/* ── Brand header ────────────────────────────────────────────────────────── */

.login-brand {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.login-brand-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-brand h1 {
    font-size: 20px;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.login-brand p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.login-card {
    background: #1a1d26;
    border: 1px solid #2a2f42;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ── Alert ───────────────────────────────────────────────────────────────── */

.login-alert {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

.login-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

/* ── Form fields ─────────────────────────────────────────────────────────── */

.field-group {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    margin-bottom: 7px;
}

.field-input {
    width: 100%;
    background: #0f1117;
    border: 1px solid #2a2f42;
    border-radius: 9px;
    color: #e2e8f0;
    font-size: 14px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.field-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field-input::placeholder { color: #374151; }

/* ── Remember me ─────────────────────────────────────────────────────────── */

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.remember-row label {
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

/* ── Submit button ───────────────────────────────────────────────────────── */

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 13px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-login:hover  { opacity: 0.92; box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5); }
.btn-login:active { transform: scale(0.98); }
