:root {
    --login-ink: #11182b;
    --login-muted: #69738a;
    --login-line: #dfe4ef;
    --login-hero: #10182e;
    --login-hero-deep: #080c18;
    --login-accent: #19d3c5;
    --login-violet: #7857ff;
}

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

html,
body {
    min-height: 100%;
}

body {
    overflow-x: hidden;
    background: #edf0f7;
    color: var(--login-ink);
    font-family: 'Inter', sans-serif;
}

button,
input {
    font: inherit;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(410px, .88fr);
}

.login-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 4.5vw, 66px);
    background:
        linear-gradient(145deg, rgba(8, 12, 24, .97), rgba(16, 24, 46, .95)),
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .12), transparent 38%);
    color: #fff;
}

.login-hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    content: '';
    mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}

.login-orb {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(4px);
    pointer-events: none;
}

.login-orb-one {
    top: -160px;
    right: -100px;
    width: 430px;
    height: 430px;
    background: rgba(120, 87, 255, .22);
}

.login-orb-two {
    right: 16%;
    bottom: -250px;
    width: 520px;
    height: 520px;
    background: rgba(25, 211, 197, .13);
}

.login-hero-content {
    width: min(100%, 760px);
}

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

.login-logo-box {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.login-logo-box img {
    max-width: 58px;
    max-height: 54px;
    object-fit: contain;
}

.login-branding > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.login-branding strong {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: .01em;
}

.login-branding strong b,
.login-mobile-brand strong b {
    color: var(--login-accent);
    font-weight: 900;
}

.login-branding span {
    color: rgba(255, 255, 255, .6);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-hero-copy {
    margin-top: clamp(50px, 8vh, 100px);
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #dfe6ff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.login-eyebrow i {
    color: var(--login-accent);
}

.login-hero h1 {
    max-width: 680px;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -.065em;
    line-height: .95;
}

.login-hero h1 em {
    background: linear-gradient(90deg, var(--login-accent), #a998ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

.login-hero-copy p {
    max-width: 580px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(.94rem, 1.3vw, 1.08rem);
    line-height: 1.65;
}

.login-live-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 12px;
    margin-top: clamp(34px, 6vh, 64px);
}

.login-live-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(14px);
}

.login-live-icon,
.login-weather-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 15px;
    background: rgba(25, 211, 197, .12);
    color: var(--login-accent);
    font-size: 1.25rem;
}

.login-weather-icon.is-night {
    background: rgba(147, 197, 253, .15);
    color: #bfdbfe;
}

.login-live-card span {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, .58);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.login-time-card strong {
    display: block;
    color: #fff;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.login-live-card small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .72);
    font-size: .7rem;
    line-height: 1.35;
}

.login-weather-main {
    min-width: 0;
}

.login-weather-main strong {
    display: flex;
    align-items: flex-start;
    color: #fff;
    font-size: 1.8rem;
    letter-spacing: -.04em;
    line-height: 1;
}

.login-weather-main strong b {
    font-weight: 900;
}

.login-weather-main sup {
    margin: 2px 0 0 2px;
    color: var(--login-accent);
    font-size: .7rem;
}

.login-weather-extra {
    max-width: 118px;
    margin-left: auto;
    color: rgba(255, 255, 255, .58);
    font-size: .65rem;
    line-height: 1.45;
    text-align: right;
}

.login-feature-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.login-feature-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .68);
    font-size: .7rem;
    font-weight: 700;
}

.login-feature-row i {
    color: var(--login-accent);
}

.login-hero-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 40px;
    color: rgba(255, 255, 255, .45);
    font-size: .68rem;
}

.login-hero-footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.login-panel {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: clamp(24px, 5vw, 70px);
    background:
        radial-gradient(circle at 85% 10%, rgba(120, 87, 255, .09), transparent 27%),
        #f8f9fc;
}

.login-panel-inner {
    width: min(100%, 450px);
}

.login-mobile-brand {
    display: none;
}

.login-welcome {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 30px;
}

.login-welcome-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 14px;
    background: #e9e5ff;
    color: #6544e7;
    transform: rotate(-8deg);
}

.login-welcome small {
    display: block;
    margin-bottom: 2px;
    color: #6544e7;
    font-size: .76rem;
    font-weight: 800;
}

.login-welcome h2 {
    color: var(--login-ink);
    font-size: clamp(1.7rem, 3vw, 2.15rem);
    font-weight: 900;
    letter-spacing: -.04em;
}

.login-welcome p {
    margin-top: 5px;
    color: var(--login-muted);
    font-size: .86rem;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 13px 14px;
    border-radius: 13px;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
}

.login-alert-error {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.login-alert i {
    margin-top: 2px;
}

.login-group {
    margin-bottom: 19px;
}

.login-label {
    display: block;
    margin-bottom: 8px;
    color: #3e475d;
    font-size: .78rem;
    font-weight: 800;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: #929bb0;
    font-size: .9rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 46px;
    border: 1px solid #d9deea;
    border-radius: 15px;
    outline: none;
    background: #fff;
    color: #151d32;
    font-size: .9rem;
    box-shadow: 0 7px 20px rgba(24, 34, 67, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-input-password {
    padding-right: 48px;
}

.login-input::placeholder {
    color: #a3afa8;
}

.login-input:focus {
    border-color: var(--login-violet);
    box-shadow: 0 0 0 4px rgba(120, 87, 255, .1), 0 10px 24px rgba(30, 37, 70, .06);
    transform: translateY(-1px);
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #84938a;
    cursor: pointer;
    transform: translateY(-50%);
}

.login-password-toggle:hover {
    background: #f0edff;
    color: #6544e7;
}

.login-btn {
    display: flex;
    width: 100%;
    height: 55px;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 19px 0 21px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #16bfb3, #6847ed 82%);
    color: #fff;
    font-size: .9rem;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(89, 65, 208, .24);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.login-btn:hover {
    filter: brightness(1.04);
    box-shadow: 0 19px 34px rgba(89, 65, 208, .3);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    cursor: wait;
    opacity: .82;
}

.login-btn i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
}

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    color: #829087;
    font-size: .7rem;
}

.login-security-note i {
    color: #26aa9f;
}

@media (max-width: 1100px) {
    .login-shell {
        grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
    }

    .login-hero {
        padding: 34px;
    }

    .login-live-grid {
        grid-template-columns: 1fr;
    }

    .login-feature-row {
        display: none;
    }

    .login-weather-extra {
        max-width: 140px;
    }
}

@media (max-width: 820px) {
    .login-shell {
        display: flex;
        min-height: 100svh;
        flex-direction: column;
        background: #f8f9fc;
    }

    .login-hero {
        min-height: 0;
        padding: 22px 18px 24px;
        border-radius: 0 0 28px 28px;
    }

    .login-branding,
    .login-hero-copy p,
    .login-feature-row,
    .login-hero-footer {
        display: none;
    }

    .login-hero-copy {
        margin-top: 0;
    }

    .login-eyebrow {
        margin-bottom: 12px;
        padding: 6px 10px;
        font-size: .6rem;
    }

    .login-hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.55rem);
        line-height: 1;
    }

    .login-live-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 20px;
    }

    .login-live-card {
        min-height: 90px;
        gap: 9px;
        padding: 12px;
        border-radius: 16px;
    }

    .login-live-icon,
    .login-weather-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 11px;
        font-size: .95rem;
    }

    .login-live-card span {
        font-size: .53rem;
    }

    .login-time-card strong,
    .login-weather-main strong {
        font-size: 1.15rem;
    }

    .login-live-card small {
        overflow: hidden;
        max-width: 150px;
        margin-top: 3px;
        font-size: .57rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .login-weather-extra {
        display: none;
    }

    .login-panel {
        min-height: 0;
        flex: 1;
        padding: 26px 20px 30px;
        place-items: start center;
        background: transparent;
    }

    .login-panel-inner {
        width: min(100%, 480px);
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 22px;
    }

    .login-mobile-brand img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        object-fit: contain;
    }

    .login-mobile-brand strong {
        color: #151d32;
        font-size: .85rem;
        font-weight: 900;
    }

    .login-welcome {
        margin-bottom: 24px;
    }
}

@media (max-width: 420px) {
    .login-hero {
        padding-right: 14px;
        padding-left: 14px;
    }

    .login-live-card {
        padding: 10px;
    }

    .login-live-icon,
    .login-weather-icon {
        display: none;
    }

    .login-panel {
        padding-right: 17px;
        padding-left: 17px;
    }

    .login-input,
    .login-btn {
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
