/* ==========================================================================
   Home News Kerala - Staff Portal: Dedicated Login Page Styles
   Strict Separation of Concerns per AGENTS.md
   ========================================================================== */

.staff-login-body {
    background: #0D1624;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 24px 16px;
    color: #172033;
    position: relative;
    overflow-x: hidden;
}

/* Background Kerala Motif / Decorative Glow */
.login-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(215, 25, 32, 0.12) 0%, rgba(17, 28, 44, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.staff-login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header-banner {
    background: #111C2C;
    padding: 30px 28px 24px 28px;
    text-align: center;
    border-bottom: 3px solid #D71920;
    position: relative;
}

.login-brand-logo {
    display: inline-flex;
    align-items: flex-end;
    gap: 3.5px;
    height: 32px;
    margin-bottom: 12px;
}

.login-brand-logo .bar {
    width: 4px;
    background: #D71920;
    border-radius: 2px;
}
.login-brand-logo .bar-1 { height: 18px; }
.login-brand-logo .bar-2 { height: 28px; }
.login-brand-logo .bar-3 { height: 32px; }
.login-brand-logo .bar-4 { height: 24px; }
.login-brand-logo .bar-5 { height: 16px; }

.login-portal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.login-portal-title span {
    color: #D71920;
}

.login-badge-tag {
    display: inline-block;
    background: rgba(215, 25, 32, 0.2);
    color: #FF8085;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 8px;
    border: 1px solid rgba(215, 25, 32, 0.4);
}

.login-body-content {
    padding: 30px 28px 26px 28px;
}

/* Alert Boxes */
.login-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.login-alert-danger {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #B91C1C;
}

.login-alert-success {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
}

/* Form Controls */
.login-form-group {
    margin-bottom: 18px;
}

.login-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 6px;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 0.95rem;
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    font-size: 0.94rem;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    color: #0F172A;
    transition: all 0.2s ease-in-out;
}

.login-input:focus {
    border-color: #D71920;
    outline: none;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12);
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    font-size: 0.92rem;
    padding: 4px;
}

.btn-toggle-password:hover {
    color: #475569;
}

/* Login Submit Button */
.btn-login-submit {
    width: 100%;
    padding: 13px;
    background: #D71920;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.3);
    margin-top: 10px;
}

.btn-login-submit:hover {
    background: #B9151B;
    box-shadow: 0 6px 16px rgba(215, 25, 32, 0.4);
    transform: translateY(-1px);
}

/* Demo Credentials Hint Box */
.demo-credentials-box {
    margin-top: 22px;
    padding: 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #475569;
}

.demo-credentials-box strong {
    color: #0F172A;
    display: block;
    margin-bottom: 6px;
}

.demo-cred-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.demo-cred-row code {
    background: #E2E8F0;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.82rem;
    color: #1E293B;
}

/* Back Link */
.login-card-footer {
    text-align: center;
    padding: 16px;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.back-home-link {
    color: #64748B;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.back-home-link:hover {
    color: #D71920;
}
