/**
 * HRMS - Login Page Styles (Full-width header design)
 */

/* ─── Layout ───────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f0f4fb;
}

/* ─── Header ───────────────────────────────────────────────── */
.login-hdr {
    background: linear-gradient(135deg, #001a52 0%, #002165 50%, #003aab 100%);
    position: relative;
    overflow: hidden;
}

.login-hdr::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255, 92, 34, 0.12);
    top: -280px; left: -120px;
    pointer-events: none;
}

.login-hdr::after {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -200px; right: -80px;
    pointer-events: none;
}

.login-hdr-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Brand block */
.login-hdr-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-hdr-logo {
    width: 54px; height: 54px;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px;
    flex-shrink: 0;
}

.login-hdr-initials {
    width: 54px; height: 54px;
    border-radius: 14px;
    background: #FF5C22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.login-hdr-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.login-hdr-slogan {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
}

/* Feature chips in header */
.login-hdr-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.login-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    transition: background .15s;
}

.login-chip svg { width: 13px; height: 13px; flex-shrink: 0; }
.login-chip:hover { background: rgba(255, 255, 255, 0.18); }

/* ─── Main (form area) ─────────────────────────────────────── */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 20px;
}

/* ─── Card ─────────────────────────────────────────────────── */
.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 44px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 40px rgba(0, 33, 101, 0.13);
}

.login-card-hdr {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary, #002165);
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-muted, #94a3b8);
}

/* ─── Inputs ───────────────────────────────────────────────── */
.login-input-group {
    margin-bottom: 18px;
}

.login-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700, #374151);
    margin-bottom: 7px;
}

.login-input-wrap {
    position: relative;
}

/* Direct SVG child = field icon (user / lock) */
.login-input-wrap > svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: var(--text-muted, #94a3b8);
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 12px 42px 12px 14px; /* right: icon space, left: normal */
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius, 8px);
    font-family: inherit;
    font-size: 13px;
    color: var(--text, #1e293b);
    background: var(--gray-50, #f8fafc);
    transition: border-color .15s, box-shadow .15s;
}

.login-input:focus {
    outline: 0;
    background: #fff;
    border-color: var(--primary, #002165);
    box-shadow: 0 0 0 3px rgba(0, 33, 101, 0.08);
}

/* Password field: extra left padding for eye button */
.login-input-pwd {
    padding-left: 42px;
}

/* Eye toggle button */
.login-eye {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--text-muted, #94a3b8);
    padding: 4px;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color .15s;
}

.login-eye svg { width: 15px; height: 15px; display: block; }
.login-eye:hover { color: var(--primary, #002165); }

/* ─── Row (remember + forgot) ──────────────────────────────── */
.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 12px;
}

.login-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-700, #374151);
    cursor: pointer;
}

.login-checkbox input { accent-color: var(--primary, #002165); }

.login-link-sm {
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
    text-decoration: none;
    transition: color .15s;
}

.login-link-sm:hover { color: var(--primary, #002165); }

/* ─── Submit button ────────────────────────────────────────── */
.login-btn {
    width: 100%;
    padding: 13px;
    background: var(--primary, #002165);
    color: #fff;
    border: 0;
    border-radius: var(--radius, 8px);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover  { background: #003aab; }
.login-btn:active { transform: scale(.99); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Error ────────────────────────────────────────────────── */
.login-error {
    background: rgba(220, 53, 69, 0.08);
    color: #a71d2a;
    padding: 11px 14px;
    border-radius: var(--radius, 8px);
    font-size: 12px;
    margin-bottom: 18px;
    border-right: 3px solid #dc2626;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

/* ─── Card footer ──────────────────────────────────────────── */
.login-card-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border, #e2e8f0);
    text-align: center;
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .login-hdr-inner {
        padding: 20px 20px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .login-hdr-chips {
        display: none;
    }

    .login-main {
        padding: 20px 14px 40px;
        align-items: flex-start;
    }

    .login-card {
        padding: 24px 20px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 33, 101, 0.1);
    }

    .login-card-hdr { margin-bottom: 22px; padding-bottom: 16px; }
    .login-title { font-size: 20px; }
}
