﻿@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=DM+Mono&display=swap'); 
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans',sans-serif;
    min-height: 100vh;
    display: flex;
    background: #071c18;
    overflow: hidden;
}

/* ══ LEFT PANEL ══ */
.left {
    width: 52%;
    position: relative;
    background: linear-gradient(145deg,#071c18 0%,#0d2e28 50%,#0a2420 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow: hidden;
}

/* Animated background circles */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(13,148,136,.18),transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.c1 {
    width: 500px;
    height: 500px;
    top: -120px;
    left: -120px;
    animation-delay: 0s;
}

.c2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    right: -60px;
    animation-delay: -3s;
}

.c3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 60%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-24px) scale(1.04);
    }
}

/* Grid pattern */
.left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(13,148,136,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(13,148,136,.06) 1px, transparent 1px);
    background-size: 40px 40px;
}

.left-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.brand-mark {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg,#0d9488,#0891b2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne',sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 32px rgba(13,148,136,.4), inset 0 1px 0 rgba(255,255,255,.2);
    position: relative;
}

    .brand-mark::after {
        content: '💚';
        position: absolute;
        font-size: 14px;
        bottom: -4px;
        right: -4px;
    }

.brand-name {
    font-family: 'Syne',sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.brand-sub {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* Stats row */
.stats {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-v {
    font-family: 'Syne',sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #14b8a6;
}

.stat-l {
    font-size: 9px;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-top: 2px;
}

/* Feature pills */
.pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 340px;
}

.pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px 16px;
    transition: background .2s;
}

    .pill:hover {
        background: rgba(255,255,255,.08);
    }

.pill-ic {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.pill-txt {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

    .pill-txt b {
        color: #fff;
        font-weight: 700;
    }

/* HMS status bar */
.hms-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(13,148,136,.1);
    border: 1px solid rgba(13,148,136,.25);
    border-radius: 10px;
    padding: 10px 16px;
    margin-top: 24px;
    font-size: 11px;
    color: rgba(255,255,255,.6);
}

.hms-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

/* ══ RIGHT PANEL ══ */
.right {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    position: relative;
}

    /* Subtle top accent */
    .right::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg,#0d9488,#0891b2,#0d9488);
    }

.login-box {
    width: 100%;
    max-width: 400px;
}

.login-title {
    font-family: 'Syne',sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #0a1f1c;
    margin-bottom: 4px;
}

.login-sub {
    font-size: 12px;
    color: #7a9e99;
    margin-bottom: 32px;
}

/* Form groups */
.fg {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
    position: relative;
}

.fl {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .9px;
    font-weight: 700;
    color: #7a9e99;
}

.fi-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1e8e4;
    border-radius: 10px;
    background: #f5fbfa;
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s;
}

    .fi-wrap:focus-within {
        border-color: #0d9488;
        box-shadow: 0 0 0 3px rgba(13,148,136,.1);
        background: #fff;
    }

    .fi-wrap.err {
        border-color: #dc2626;
        box-shadow: 0 0 0 3px rgba(220,38,38,.08);
        background: #fff5f5;
    }

    .fi-wrap.ok {
        border-color: #16a34a;
        background: #f0fdf4;
    }

.fi-icon {
    padding: 0 12px;
    font-size: 16px;
    flex-shrink: 0;
    opacity: .5;
}

.fi {
    flex: 1;
    padding: 11px 0;
    border: none;
    outline: none;
    font-family: 'Plus Jakarta Sans',sans-serif;
    font-size: 13px;
    color: #0a1f1c;
    background: transparent;
}

    .fi::placeholder {
        color: #b0ccc8;
    }

.fi-eye {
    padding: 0 13px;
    cursor: pointer;
    font-size: 15px;
    opacity: .4;
    transition: opacity .15s;
    flex-shrink: 0;
    background: none;
    border: none;
}

    .fi-eye:hover {
        opacity: .8;
    }

.f-err {
    font-size: 10px;
    font-weight: 600;
    color: #dc2626;
    display: none;
    margin-top: 2px;
}

.f-ok {
    font-size: 10px;
    font-weight: 600;
    color: #16a34a;
    display: none;
    margin-top: 2px;
}

.fg.is-err .f-err {
    display: block;
}

.fg.is-ok .f-ok {
    display: block;
}

.fg.is-err .fi-wrap {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.08);
    background: #fff5f5;
}

.fg.is-ok .fi-wrap {
    border-color: #16a34a;
    background: #f0fdf4;
}

/* Password strength */
.pwd-strength {
    margin-top: 6px;
}

.ps-bar {
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 3px;
}

.ps-fill {
    height: 100%;
    border-radius: 2px;
    transition: width .35s,background .35s;
    width: 0;
}

.ps-label {
    font-size: 10px;
    font-weight: 600;
}

/* Remember + forgot */
.rf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    margin-top: -4px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

    .remember input[type=checkbox] {
        width: 16px;
        height: 16px;
        accent-color: #0d9488;
        cursor: pointer;
    }

    .remember span {
        font-size: 12px;
        color: #2d4a46;
        font-weight: 500;
    }

.forgot {
    font-size: 12px;
    color: #0d9488;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

    .forgot:hover {
        text-decoration: underline;
    }

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg,#0d9488,#0891b2);
    color: #fff;
    font-family: 'Plus Jakarta Sans',sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(13,148,136,.35);
    position: relative;
    overflow: hidden;
}

    .submit-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg,rgba(255,255,255,.1),transparent);
    }

    .submit-btn:hover {
        box-shadow: 0 6px 22px rgba(13,148,136,.45);
        transform: translateY(-1px);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        background: #94d5cf;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
    }

.btn-spinner {
    display: none;
    align-items: center;
    gap: 8px;
}

.spin-ring {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e6f2f0;
}

.divider-txt {
    font-size: 10px;
    color: #b0ccc8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Role pills */
.role-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.role-pill {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1.5px solid #d1e8e4;
    background: #f5fbfa;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
}

    .role-pill.on {
        border-color: #0d9488;
        background: #f0fdfa;
    }

    .role-pill .rp-ic {
        font-size: 18px;
        display: block;
        margin-bottom: 3px;
    }

    .role-pill .rp-lbl {
        font-size: 10px;
        font-weight: 700;
        color: #7a9e99;
    }

    .role-pill.on .rp-lbl {
        color: #0d9488;
    }

/* Footer */
.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: #b0ccc8;
}

    .login-footer a {
        color: #0d9488;
        font-weight: 600;
        cursor: pointer;
    }

/* Error banner */
#loginError {
    display: none;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 4px solid #dc2626;
    border-radius: 9px;
    padding: 11px 14px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #991b1b;
    animation: slideIn .25s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Toast */
#toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    min-width: 260px;
    max-width: 340px;
    border-left: 4px solid;
    box-shadow: 0 6px 24px rgba(0,0,0,.13);
    cursor: pointer;
    animation: tIn .28s ease;
}

    .toast.out {
        animation: tOut .28s ease forwards;
    }

@keyframes tIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes tOut {
    from {
        opacity: 1;
        transform: translateY(0)
    }

    to {
        opacity: 0;
        transform: translateY(8px)
    }
}

.t-ic {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.t-bd {
    flex: 1;
}

.t-tt {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.t-ms {
    font-size: 11px;
    opacity: .75;
}

.t-bar2 {
    height: 3px;
    border-radius: 0 0 12px 12px;
    margin: 8px -16px -13px;
    animation: prog2 linear forwards;
}

@keyframes prog2 {
    from {
        width: 100%
    }

    to {
        width: 0
    }
}

.ts {
    background: #f0fdf4;
    border-color: #16a34a;
}

    .ts .t-tt {
        color: #14532d;
    }

    .ts .t-ms {
        color: #15803d;
    }

    .ts .t-bar2 {
        background: #16a34a;
    }

.te {
    background: #fff1f2;
    border-color: #dc2626;
}

    .te .t-tt {
        color: #991b1b;
    }

    .te .t-ms {
        color: #b91c1c;
    }

    .te .t-bar2 {
        background: #dc2626;
    }

/* Responsive */
@media(max-width:768px) {
    .left {
        display: none;
    }

    .right {
        padding: 32px 20px;
    }
}
