/* HRMS Modern Login Splash */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --login-ink: #0b1f2a;
    --login-teal: #0d9488;
    --login-teal-bright: #14b8a6;
    --login-mint: #5eead4;
    --login-sky: #38bdf8;
    --login-cream: #f0fdfa;
    --login-card: rgba(255, 255, 255, 0.94);
    --login-muted: #5b6b7c;
    --login-border: rgba(13, 148, 136, 0.18);
    --login-shadow: 0 24px 60px rgba(11, 31, 42, 0.18);
    --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.login-body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.55;
    color: var(--login-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(circle at 12% 18%, rgba(20, 184, 166, 0.22), transparent 34%),
        radial-gradient(circle at 88% 82%, rgba(56, 189, 248, 0.18), transparent 36%),
        linear-gradient(135deg, #ecfeff 0%, #f8fafc 48%, #e0f2fe 100%);
    overflow-x: hidden;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

/* ===== Left splash panel ===== */
.login-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.login-visual-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(11, 31, 42, 0.55) 0%, rgba(13, 148, 136, 0.35) 45%, rgba(11, 31, 42, 0.62) 100%),
        url('../images/login-hero-surgery.png') center/cover no-repeat;
    transform: scale(1.02);
    animation: slowZoom 18s ease-in-out infinite alternate;
}

.login-visual-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(20, 184, 166, 0.35), transparent 40%),
        radial-gradient(circle at 70% 20%, rgba(56, 189, 248, 0.22), transparent 35%);
    pointer-events: none;
}

/* Watermark layers */
.login-watermark {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.wm-large {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-16deg);
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 8vw, 6.2rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.11);
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.wm-repeat {
    position: absolute;
    inset: -20%;
    background-image: repeating-linear-gradient(
        -18deg,
        transparent,
        transparent 70px,
        rgba(255, 255, 255, 0.035) 70px,
        rgba(255, 255, 255, 0.035) 71px
    );
}

.wm-badge {
    position: absolute;
    bottom: 18%;
    right: 8%;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.08);
}

.login-visual-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px 44px;
    color: #fff;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeUp 0.7s ease both;
}

.brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.brand-copy .brand-name {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.15;
}

.brand-copy .brand-tag {
    margin-top: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    opacity: 0.9;
    font-weight: 500;
}

.visual-headline {
    max-width: 580px;
    animation: fadeUp 0.8s ease 0.1s both;
}

.visual-headline .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.25);
    border: 1px solid rgba(94, 234, 212, 0.4);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.visual-headline h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
    word-spacing: 0.04em;
    margin-bottom: 18px;
    max-width: 560px;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.visual-headline p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.015em;
    max-width: 480px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.feature-pills span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.78);
    animation: fadeUp 0.8s ease 0.2s both;
}

.doctor-stack {
    display: flex;
    align-items: center;
}

.doctor-stack .dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    display: grid;
    place-items: center;
    font-size: 12px;
    margin-left: -8px;
    background: linear-gradient(145deg, #14b8a6, #0ea5e9);
}

.doctor-stack .dot:first-child {
    margin-left: 0;
}

/* ===== Right login panel ===== */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    position: relative;
}

.login-panel::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.18), transparent 70%);
    top: 8%;
    right: 6%;
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--login-card);
    border: 1px solid var(--login-border);
    border-radius: 24px;
    padding: 40px 38px 34px;
    box-shadow: var(--login-shadow);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 1;
    animation: fadeUp 0.75s ease 0.15s both;
}

.login-card-top {
    margin-bottom: 30px;
}

.login-card-top .icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: #fff;
    font-size: 22px;
    background: linear-gradient(135deg, var(--login-teal-bright), #0ea5e9);
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.35);
}

.login-card-top h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--login-ink);
}

.login-card-top p {
    font-family: var(--font-body);
    color: var(--login-muted);
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: 0.01em;
    font-weight: 500;
}

.login-alert {
    display: none;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}

.login-alert.show {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.login-alert.success {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    color: #334155;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    min-height: 52px;
    border-radius: 14px;
    border: 1.5px solid #dbe7ea;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.input-wrap:focus-within {
    border-color: var(--login-teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
    transform: translateY(-1px);
}

.input-wrap i {
    color: var(--login-teal);
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.015em;
    color: var(--login-ink);
    padding: 14px 0;
}

.input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-toggle-pass {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 15px;
}

.btn-toggle-pass:hover {
    color: var(--login-teal);
}

.form-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 24px;
    font-family: var(--font-body);
    font-size: 13.5px;
    letter-spacing: 0.01em;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.remember input {
    accent-color: var(--login-teal);
    width: 15px;
    height: 15px;
}

.hint-pass {
    color: var(--login-teal);
    font-weight: 600;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    border: none;
    border-radius: 14px;
    min-height: 54px;
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 100%);
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.28);
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(14, 165, 233, 0.34);
    filter: brightness(1.03);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.85;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 18px;
    color: #94a3b8;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.cred-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cred-chip {
    border-radius: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #f0fdfa, #ecfeff);
    border: 1px solid #ccfbf1;
    font-family: var(--font-body);
    font-size: 13px;
}

.cred-chip strong {
    display: block;
    color: #0f766e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    font-weight: 700;
}

.cred-chip span {
    color: #334155;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.login-footnote {
    margin-top: 22px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 12.5px;
    letter-spacing: 0.015em;
    line-height: 1.5;
    color: #94a3b8;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 42vh;
    }

    .login-visual-content {
        padding: 28px 24px;
    }

    .visual-headline h1 {
        font-size: 1.75rem;
        line-height: 1.4;
    }

    .login-card-top h2 {
        font-size: 1.75rem;
    }

    .feature-pills {
        display: none;
    }

    .login-panel {
        padding: 24px 16px 36px;
        margin-top: -28px;
    }

    .login-card {
        border-radius: 22px 22px 20px 20px;
    }
}

@media (max-width: 520px) {
    .cred-box {
        grid-template-columns: 1fr;
    }

    .wm-large {
        font-size: 3.2rem;
    }
}
