:root {
    --blue-900: #0c3d6e;
    --blue-800: #0f4c8a;
    --blue-700: #1d6fd4;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --slate-700: #334155;
    --slate-500: #64748b;
    --white: #ffffff;
    --shadow: 0 25px 50px -12px rgba(15, 76, 138, 0.25);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body.login-page {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background: var(--blue-50);
    color: var(--slate-700);
    overflow-x: hidden;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
}

.login-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.login-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 47, 73, 0.55) 0%, rgba(8, 47, 73, 0.15) 45%, rgba(8, 47, 73, 0.65) 100%),
        linear-gradient(90deg, rgba(12, 61, 110, 0.25) 0%, transparent 60%);
}

.login-hero__bg {
    object-position: center top;
}

.login-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 2.5rem 2rem;
    width: 100%;
    color: var(--white);
}

.login-hero__kicker {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(8, 47, 73, 0.45);
}

.login-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.login-hero__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    max-width: 28rem;
}

.login-hero__subtitle {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 26rem;
    color: rgba(255, 255, 255, 0.88);
}

.login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.login-panel__bg {
    position: absolute;
    inset: 0;
    background-image: url("/img/login/kepegawaian-bg.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    filter: blur(1px);
}

.login-panel__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.92) 0%, rgba(219, 234, 254, 0.88) 100%),
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.12), transparent 50%);
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 234, 254, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 2.25rem 2rem;
    backdrop-filter: blur(16px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

.login-brand__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    color: var(--white);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.login-brand__icon svg {
    width: 26px;
    height: 26px;
}

.login-brand__text h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-900);
}

.login-brand__text p {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    color: var(--slate-500);
}

.login-alert {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.875rem;
    line-height: 1.5;
}

.login-field {
    margin-bottom: 1.1rem;
}

.login-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate-500);
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap svg.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    height: 52px;
    padding: 0 3rem 0 2.85rem;
    border: 1.5px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
    font-size: 0.95rem;
    color: var(--slate-700);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-input-wrap input::placeholder {
    color: #94a3b8;
}

.login-input-wrap input:focus {
    outline: none;
    border-color: var(--blue-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    display: grid;
    place-items: center;
}

.login-toggle:hover {
    color: var(--blue-600);
}

.login-toggle svg {
    width: 18px;
    height: 18px;
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.25rem 0 1.5rem;
    font-size: 0.875rem;
}

.login-actions a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 600;
}

.login-actions a:hover {
    color: var(--blue-800);
}

.login-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.34);
    filter: brightness(1.03);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--slate-500);
}

@media (max-width: 991px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-hero {
        min-height: 280px;
    }

    .login-hero__content {
        padding: 1.5rem 1.25rem;
    }

    .login-hero__kicker {
        font-size: 1.15rem;
    }

    .login-hero__title {
        font-size: 1.5rem;
    }

    .login-hero__subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-panel {
        padding: 1rem;
    }

    .login-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }
}
