@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --ink: #172a3a;
    --muted: #788793;
    --teal: #24c8b2;
    --teal-dark: #109a8a;
    --line: #e6ecef;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    padding: 32px;
    display: grid;
    place-items: center;
    background: #f0f4f4;
    color: var(--ink);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
    width: min(1120px, 100%);
    min-height: min(720px, calc(100vh - 64px));
    overflow: hidden;
    border: 1px solid rgba(22, 43, 58, 0.06);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(27, 55, 66, 0.13);
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 650px;
    overflow: hidden;
    padding: 40px 48px 27px;
    color: #fff;
    background:
        radial-gradient(ellipse at 70% 63%, rgba(35, 198, 180, 0.12), transparent 34%),
        linear-gradient(150deg, #123f4b 0%, #0d303c 58%, #102936 100%);
}

.brand-panel::before,
.brand-panel::after {
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.brand-panel::before {
    top: 28%;
    left: 28%;
}

.brand-panel::after {
    top: 32%;
    left: 34%;
    width: 330px;
    height: 330px;
}

.brand,
.mobile-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.brand strong {
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #61e3d1;
    font-size: 17px;
}

.brand-copy {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin-top: 65px;
}

.eyebrow,
.form-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #8fa9ac;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.55px;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(36, 200, 178, 0.12);
}

.brand-copy h1 {
    margin: 18px 0 13px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(42px, 5vw, 61px);
    font-weight: 700;
    letter-spacing: -3.2px;
    line-height: 1.08;
}

.brand-copy h1 span {
    color: #50d7c3;
}

.brand-copy p {
    max-width: 370px;
    margin: 0;
    color: #a7bbbe;
    font-size: 14px;
    line-height: 1.8;
}

.lab-illustration {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    height: 255px;
    margin: auto auto 10px;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(84, 214, 197, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one {
    width: 245px;
    height: 245px;
}

.orbit-two {
    width: 184px;
    height: 184px;
    border-color: rgba(84, 214, 197, 0.3);
}

.illustration-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border: 1px solid rgba(94, 225, 207, 0.45);
    border-radius: 29px;
    background: linear-gradient(145deg, rgba(55, 183, 170, 0.26), rgba(32, 100, 107, 0.45));
    box-shadow: 0 0 65px rgba(36, 200, 178, 0.2), inset 0 1px rgba(255, 255, 255, 0.14);
    color: #7aead9;
    font-size: 39px;
    transform: translate(-50%, -50%) rotate(-8deg);
}

.molecule {
    position: absolute;
    width: 11px;
    height: 11px;
    border: 2px solid #6be4d2;
    border-radius: 50%;
    background: #164b54;
    box-shadow: 0 0 17px rgba(83, 229, 207, 0.6);
}

.molecule-one {
    top: 13px;
    left: 54%;
}

.molecule-two {
    right: 56px;
    bottom: 44px;
    width: 8px;
    height: 8px;
}

.molecule-three {
    bottom: 51px;
    left: 84px;
    width: 7px;
    height: 7px;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    background: rgba(17, 56, 67, 0.86);
    box-shadow: 0 12px 30px rgba(4, 22, 29, 0.2);
    backdrop-filter: blur(10px);
}

.floating-card strong,
.floating-card small {
    display: block;
    white-space: nowrap;
}

.floating-card strong {
    font-size: 10px;
    font-weight: 600;
}

.floating-card small {
    margin-top: 3px;
    color: #91aaae;
    font-size: 9px;
}

.result-card {
    top: 42px;
    right: 1px;
}

.status-card {
    bottom: 32px;
    left: 1px;
}

.mini-icon,
.check-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 9px;
    background: rgba(49, 202, 180, 0.13);
    color: #61e3d1;
    font-size: 12px;
}

.check-icon {
    border-radius: 50%;
    background: #36c7a8;
    color: #113f45;
    font-size: 11px;
}

.brand-footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8fa6aa;
    font-size: 10px;
}

.brand-footer i {
    margin-right: 5px;
    color: #5bd8c5;
}

.form-panel {
    display: flex;
    flex-direction: column;
    padding: 40px 54px 25px;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(37, 196, 176, 0.055), transparent 35%),
        #fff;
}

.form-panel-top {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: flex-end;
}

.mobile-brand,
.mobile-footer {
    display: none;
}

.top-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #72828b;
    font-size: 11px;
    font-weight: 600;
}

.login-content {
    width: min(100%, 365px);
    margin: auto;
    padding: 36px 0 26px;
}

.welcome-icon {
    display: grid;
    width: 45px;
    height: 45px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid #d5f3ed;
    border-radius: 14px;
    background: #edfaf7;
    color: var(--teal-dark);
    font-size: 17px;
}

.form-kicker {
    margin: 0 0 10px;
    color: var(--teal-dark);
    font-size: 10px;
    letter-spacing: 1.7px;
}

.login-content h2 {
    margin: 0;
    color: #192f3e;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.25;
}

.form-intro {
    margin: 12px 0 29px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -10px 0 20px;
    padding: 12px 14px;
    border: 1px solid #f4d0ce;
    border-radius: 10px;
    background: #fff5f4;
    color: #a6423d;
    font-size: 12px;
    line-height: 1.5;
}

.login-alert i {
    margin-top: 2px;
}

.login-form {
    display: grid;
    gap: 19px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: #334753;
    font-size: 12px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
    display: flex;
    height: 51px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfc;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap:focus-within {
    border-color: #54cbbb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 200, 178, 0.11);
}

.input-wrap > i {
    width: 46px;
    flex: 0 0 46px;
    color: #8c9ba2;
    text-align: center;
    font-size: 13px;
}

.input-wrap input {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 12px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #213642;
    font-size: 13px;
}

.input-wrap input::placeholder {
    color: #a9b4b9;
}

.password-toggle {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #84949b;
    cursor: pointer;
    font-size: 13px;
}

.password-toggle:hover {
    color: var(--teal-dark);
}

.password-toggle:focus-visible,
.btn-login:focus-visible,
.brand:focus-visible {
    outline: 3px solid rgba(36, 200, 178, 0.45);
    outline-offset: 3px;
}

.btn-login {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 18px 0 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(105deg, #159f91, #22bca7);
    box-shadow: 0 9px 18px rgba(23, 167, 149, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.btn-login:hover {
    box-shadow: 0 12px 24px rgba(23, 167, 149, 0.28);
    transform: translateY(-1px);
}

.btn-login i {
    font-size: 13px;
    transition: transform 160ms ease;
}

.btn-login:hover i {
    transform: translateX(3px);
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    color: #84939a;
    font-size: 11px;
}

.secure-note i {
    color: var(--teal-dark);
}

@media (max-width: 900px) {
    body {
        padding: 22px;
    }

    .login-shell {
        grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
        min-height: min(690px, calc(100vh - 44px));
    }

    .brand-panel {
        padding-right: 32px;
        padding-left: 32px;
    }

    .form-panel {
        padding-right: 38px;
        padding-left: 38px;
    }

    .brand-copy h1 {
        font-size: 48px;
    }

    .brand-footer {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 680px) {
    body {
        min-height: 100svh;
        padding: 0;
        background: #fff;
    }

    .login-shell {
        display: block;
        width: 100%;
        min-height: 100svh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: 100svh;
        padding: 24px clamp(23px, 7vw, 42px) 20px;
        background:
            radial-gradient(ellipse at 100% 0%, rgba(37, 196, 176, 0.075), transparent 34%),
            #fff;
    }

    .form-panel-top {
        min-height: 40px;
        justify-content: space-between;
    }

    .mobile-brand {
        display: inline-flex;
        gap: 9px;
        color: #1b3543;
        font-size: 13px;
        font-weight: 700;
    }

    .mobile-brand .brand-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-color: #d7eee9;
        background: #effaf8;
        color: var(--teal-dark);
        font-size: 15px;
    }

    .top-note {
        gap: 8px;
        font-size: 10px;
    }

    .login-content {
        width: min(100%, 390px);
        padding: 54px 0 35px;
    }

    .welcome-icon {
        margin-bottom: 22px;
    }

    .form-intro {
        margin-bottom: 28px;
    }

    .mobile-footer {
        display: block;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid #eef1f2;
        color: #97a2a7;
        font-size: 10px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .top-note {
        font-size: 0;
    }

    .top-note .status-dot {
        width: 8px;
        height: 8px;
        flex-basis: 8px;
    }

    .desktop-break {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
