* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f7fd;
    --card: #ffffff;
    --text: #17213a;
    --muted: #7b8aa6;
    --line: #e9eef8;
    --shadow: 0 14px 34px rgba(32, 63, 121, 0.08);
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --blue: #4a6cf7;
    --blue-2: #2f80ff;
    --cyan: #17d2c2;
    --purple: #a14cff;
    --pink: #ff6a88;
    --orange: #ffbd2e;
    --yellow: #ffd34d;
    --green: #24d58b;
    --danger: #ff5f7d;
    --sidebar-grad: linear-gradient(180deg, #11d7c2 0%, #2e7cf7 62%, #1f55d4 100%);
    --profile-grad: linear-gradient(90deg, #18d7bf 0%, #2e7cf7 100%);
    --pink-grad: linear-gradient(90deg, #ff7a88 0%, #ff5d86 100%);
    --purple-grad: linear-gradient(90deg, #bf67ff 0%, #8d4dff 100%);
    --yellow-grad: linear-gradient(90deg, #ffd64c 0%, #ffbb2b 100%);
    --blue-grad: linear-gradient(90deg, #5c93ff 0%, #3271f6 100%);
    --teal-blue-grad: linear-gradient(180deg, #19d4c1 0%, #3875ff 100%);
    --sidebar-w: 90px;
    --main-max: 1730px;
}

body {
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* background effects */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}
.blur-1 {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.20);
    top: -80px;
    left: -60px;
}
.blur-2 {
    width: 420px;
    height: 420px;
    background: rgba(34, 211, 238, 0.18);
    bottom: -120px;
    right: -80px;
}
.blur-3 {
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.10);
    top: 50%;
    left: 12%;
    transform: translateY(-50%);
}

.wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-card {
    width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    position: relative;
    z-index: 1;
}

.main-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.left-zone {
    padding: 40px 0px 38px 50px;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.brand-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand-text h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.brand-text p {
    font-size: 12px;
    color: rgba(255,255,255,0.72);
    margin-top: 3px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.secure-badge {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.headline {
    margin-top: 24px;
}

.headline .eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.headline h1 {
    font-size: 55px;
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -1.7px;
    max-width: 520px;
}

.headline h1 span {
    color: #d8fff8;
}

.headline p {
    margin-top: 18px;
    max-width: 500px;
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.8;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
    max-width: 560px;
}

.mini-card {
    padding: 18px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.mini-card .num {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.mini-card .txt {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.78);
}

.bottom-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 16px;
    width: fit-content;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
}

.bottom-note .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 14px #22c55e;
    flex-shrink: 0;
}

.bottom-note span {
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-weight: 600;
}

.right-zone {
    position: relative;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-panel {
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    background: rgba(9, 18, 32, 0.72);
    border: 1px solid rgba(255,255,255,0.10);
    /* box-shadow: 0 25px 60px rgba(0,0,0,0.30); */
    padding: 34px 28px 28px;
    position: relative;
    z-index: 3;
}

.login-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.panel-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(37,99,235,0.28);
}

.panel-logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.panel-chip {
    padding: 9px 12px;
    font-size: 11px;
    color: #d7e6fb;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.login-panel h3 {
    font-size: 34px;
    color: white;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.login-panel .sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #dbe7fa;
    margin-bottom: 9px;
    font-weight: 600;
}

.input-box {
    position: relative;
}

.input-box input {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.06);
    outline: none;
    padding: 0 16px 0 48px;
    font-size: 15px;
    color: white;
    transition: 0.3s ease;
}

.input-box input::placeholder {
    color: rgba(255,255,255,0.42);
}

.input-box input:focus {
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}

/* Fix: browser autofill overrides background to white — force dark */
.input-box input:-webkit-autofill,
.input-box input:-webkit-autofill:hover,
.input-box input:-webkit-autofill:focus,
.input-box input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 60px #1a2a3a inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    border-color: rgba(255,255,255,0.18) !important;
    transition: background-color 9999s ease-in-out 0s;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: rgba(255,255,255,0.70);
    pointer-events: none;
    transition: color 0.2s ease;
}

/* Keep icon visible when input is focused or autofilled */
.input-box:focus-within .input-icon {
    color: rgba(255,255,255,0.90);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 20px;
    flex-wrap: wrap;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #c7d6ec;
    font-size: 13px;
}

.remember input {
    accent-color: #2563eb;
    width: 15px;
    height: 15px;
}

.forgot {
    color: #93c5fd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

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

.btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: white;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.6px;
    box-shadow: 0 18px 35px rgba(15,118,110,0.28);
    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.panel-footer {
    margin-top: 18px;
    text-align: center;
    color: rgba(255,255,255,0.52);
    font-size: 12px;
    line-height: 1.6;
}

/* floating cards */
.float-card {
    position: absolute;
    border-radius: 22px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.16);
    color: white;
    padding: 16px 18px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.16);
    z-index: 2;
}

.float-card h4 {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    margin-bottom: 8px;
}

.float-card strong {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
    font-weight: 800;
}

.float-card p {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}

.float-1 {
    top: 70px;
    right: -20px;
    width: 190px;
    transform: rotate(4deg);
}

.float-2 {
    bottom: 70px;
    right: 10px;
    width: 170px;
    transform: rotate(-6deg);
}

.float-3 {
    left: -25px;
    bottom: 55px;
    width: 200px;
    transform: rotate(-12deg);
}

.signature {
    position: absolute;
    bottom: 18px;
    left: 28px;
    color: rgba(255,255,255,0.42);
    font-size: 12px;
    z-index: 3;
    letter-spacing: 0.5px;
}

/* ── Attendance Summary Card ── */
.att-summary-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.28);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 20px;
    animation: attFadeIn .4s ease;
}
@keyframes attFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.att-summary-icon { font-size: 22px; color: #22c55e; flex-shrink: 0; margin-top: 2px; }
.att-summary-body { flex: 1; }
.att-summary-title {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em;
    color: #22c55e; margin-bottom: 3px;
}
.att-summary-name { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.att-summary-date { font-size: 11px; color: rgba(255,255,255,0.45); margin-bottom: 8px; }
.att-summary-times { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.att-time-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
}
.att-time-pill.in  { background: rgba(59,130,246,0.22); color: #93c5fd; }
.att-time-pill.out { background: rgba(239,68,68,0.22);  color: #fca5a5; }
.att-arrow { font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 700; }

/* ── Tablet & Mobile (≤ 1024px) — left zone hide, sirf form ── */
@media (max-width: 1024px) {
    body {
        align-items: flex-start;
        justify-content: center;
        padding: 0;
        overflow-y: auto;
        min-height: 100vh;
    }

    .main-card {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
    }

    .left-zone {
        display: none !important;
    }

    .float-1, .float-2, .float-3 {
        display: none !important;
    }

    .right-zone {
        padding: 40px 20px;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .login-panel {
        width: 100%;
        max-width: 440px;
        padding: 36px 30px 28px;
        border-radius: 28px;
    }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .right-zone {
        padding: 32px 16px;
    }

    .login-panel {
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .login-panel h3 {
        font-size: 28px;
    }

    .login-panel .sub {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .input-box input {
        height: 50px;
        font-size: 14px;
    }

    .btn {
        height: 52px;
        font-size: 14px;
    }

    .panel-logo {
        width: 50px;
        height: 50px;
    }

    .panel-logo img {
        width: 32px;
        height: 32px;
    }

    .panel-chip {
        font-size: 10px;
        padding: 7px 10px;
    }
}

/* Toast */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast {
    min-width: 280px; margin-bottom: 10px;
    padding: 14px 18px; border-radius: 10px;
    color: #fff; font-size: 13px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    animation: slideIn 0.35s ease, fadeOut 0.35s ease 3.5s forwards;
}
.toast.success { background: linear-gradient(90deg, #22c55e, #16a34a); }
.toast.error   { background: linear-gradient(90deg, #ef4444, #dc2626); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(120%); } }
