/* Tej HRMS login: blue / white / silver theme taken from the illustration */
:root {
    --blue: #2a5bd7;
    --blue-dark: #1b3fa8;
    --navy: #0f1f4d;
    --text-muted: #5b6785;
    --field-bg: #f1f5fd;
    --field-border: #dbe4f6;
    --panel-top: #f4f7ff;
    --panel-bottom: #d9e4fa;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    background: #eef2fb;
}

.login-wrapper {
    position: relative;
    display: flex;
    width: 1100px;
    max-width: 94%;
    min-height: 620px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(27, 63, 168, 0.18);
}

/* FORM SIDE (right) */
.login-left {
    position: relative;
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #ffffff;
    border-radius: 0 24px 24px 0;
}

.login-content {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-content h1 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
}

.login-subtitle {
    margin: 0 0 32px;
    font-size: 14.5px;
    color: var(--text-muted);
}

.input-box {
    position: relative;
    margin-bottom: 18px;
}

.input-box input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 50px;
    border: 1px solid var(--field-border);
    border-radius: 12px;
    background: var(--field-bg);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-box input::placeholder { color: #8a95b0; }

.input-box input:focus {
    border-color: var(--blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(42, 91, 215, 0.14);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--blue);
}

.toggle-eye {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7a86a6;
}

.toggle-eye:hover { color: var(--blue); }

.login-btn {
    width: 100%;
    margin-top: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1F3BB3, #6d8bff);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(42, 91, 215, 0.30);
    transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.login-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 12px 26px rgba(42, 91, 215, 0.40);
}

.forgot-link { margin-top: 22px; }

.forgot-link a {
    font-size: 14px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link a:hover { text-decoration: underline; }

/* IMAGE SIDE (left) */
.login-right {
    position: relative;
    order: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px 0 0 24px;
    background: linear-gradient(160deg, var(--panel-top) 0%, var(--panel-bottom) 100%);
}

/* static soft light behind the illustration */
.scene-glow {
    position: absolute;
    width: 80%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
}

/* ============================================
   ILLUSTRATION: icons pop in once, then everything stays still
   ============================================ */
.scene {
    position: relative;
    z-index: 2;
    width: min(96%, 520px);
    aspect-ratio: 1 / 1;
}

.scene img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.scene-base {
    animation: fadeIn 0.6s ease-out both;
}

.float-obj {
    position: absolute;
    inset: 0;
    transform-origin: var(--ox) var(--oy);
    animation: popIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--in);
}

.float-obj img {
    filter: drop-shadow(0 8px 10px rgba(27, 63, 168, 0.22));
}

/* rotation/scale centre of each icon (percent of the artwork) + entrance delay */
.o-chart     { --ox: 41%;   --oy: 14.9%; --in: 0.5s; }
.o-clipboard { --ox: 60.6%; --oy: 15.2%; --in: 0.65s; }
.o-stopwatch { --ox: 74.5%; --oy: 24.8%; --in: 0.8s; }
.o-note      { --ox: 84.4%; --oy: 35.5%; --in: 0.95s; }
.o-pencil    { --ox: 84.2%; --oy: 51.1%; --in: 1.1s; }
.o-target    { --ox: 18.6%; --oy: 51.8%; --in: 1.25s; }
.o-checklist { --ox: 18.3%; --oy: 37.8%; --in: 1.4s; }
.o-globe     { --ox: 26%;   --oy: 24.6%; --in: 1.55s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.3); }
    to   { opacity: 1; transform: scale(1); }
}

/* MOBILE / TABLET: hide the image panel */
@media (max-width: 900px) {
    .login-right { display: none; }
    .login-left { border-radius: 24px; }
    .login-wrapper { max-width: 460px; min-height: 540px; }
}

@media (prefers-reduced-motion: reduce) {
    .scene-base, .float-obj { animation: none !important; }
}