@font-face {
    font-family: "Yekan";
    src: url("/fonts/Yekan.woff2") format("woff2"), url("/fonts/Yekan.woff") format("woff");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --login-ink: #172033;
    --login-muted: #667085;
    --login-line: #d9e0e9;
    --login-soft: #f5f7fa;
    --login-blue: #2563eb;
    --login-blue-dark: #1d4ed8;
    --login-navy: #0f172a;
    --login-navy-soft: #17233b;
    --login-danger: #c62828;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    color: var(--login-ink);
    background: #fff;
    font-family: "Yekan", Tahoma, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(440px, .82fr) minmax(520px, 1.18fr);
    min-height: 100svh;
    overflow: hidden;
    background: #fff;
}

.login-form-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px clamp(34px, 6vw, 88px);
    background: #fff;
}

.login-form-inner {
    width: 100%;
    max-width: 410px;
    animation: login-form-enter .5s cubic-bezier(.2, .75, .25, 1) both;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    margin-bottom: clamp(54px, 8vh, 86px);
    color: var(--login-ink);
    text-decoration: none;
}

.login-brand-mark {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--login-blue);
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transform: rotate(-5deg);
}

.login-brand-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    direction: ltr;
}

.login-brand-name b {
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.1;
}

.login-brand-name small {
    color: var(--login-muted);
    font-size: 11px;
    font-weight: 400;
}

.login-heading {
    margin-bottom: 31px;
}

.login-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--login-blue);
    font-size: 13px;
    font-weight: 500;
}

.login-heading h1 {
    margin: 0 0 10px;
    color: var(--login-ink);
    font-size: clamp(29px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -.5px;
}

.login-heading p {
    margin: 0;
    color: var(--login-muted);
    font-size: 14px;
    line-height: 1.9;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -10px 0 22px;
    padding: 11px 12px;
    color: var(--login-danger);
    border: 1px solid #f3c9c9;
    border-radius: 10px;
    background: #fff7f7;
    font-size: 13px;
    line-height: 1.7;
}

.login-alert-mark {
    display: inline-grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--login-danger);
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.login-form {
    display: grid;
    gap: 21px;
}

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    color: #344054;
    font-size: 13px;
    font-weight: 500;
}

.login-control {
    position: relative;
    display: flex;
    align-items: center;
}

.login-control > svg {
    position: absolute;
    z-index: 1;
    right: 14px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #8c98aa;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
    pointer-events: none;
}

.login-control input {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 14px;
    color: var(--login-ink);
    border: 1px solid var(--login-line);
    border-radius: 11px;
    outline: none;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-control input::placeholder {
    color: #9aa4b2;
    opacity: 1;
}

.login-control input:hover {
    border-color: #b8c2cf;
}

.login-control input:focus {
    border-color: #7ca3f4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .09);
}

.login-password-control input {
    padding-left: 70px;
}

.password-toggle {
    position: absolute;
    left: 7px;
    min-width: 56px;
    height: 38px;
    padding: 0 8px;
    color: #596579;
    border: 0;
    border-radius: 8px;
    outline: none;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    transition: color .15s ease, background .15s ease;
}

.password-toggle:hover {
    color: var(--login-blue);
    background: #eef4ff;
}

.password-toggle:focus-visible {
    box-shadow: 0 0 0 2px #8fb1f5;
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 52px;
    margin-top: 3px;
    padding: 0 18px;
    color: #fff;
    border: 0;
    border-radius: 11px;
    outline: none;
    background: var(--login-blue);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.login-submit svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transform: rotate(180deg);
}

.login-submit:hover {
    background: var(--login-blue-dark);
    box-shadow: 0 9px 24px rgba(37, 99, 235, .18);
    transform: translateY(-1px);
}

.login-submit:active {
    box-shadow: none;
    transform: translateY(0);
}

.login-submit:focus-visible {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .22);
}

.login-submit:disabled {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 20px 0 0;
    color: #8a94a4;
    font-size: 11px;
}

.login-security-note > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #39a875;
    box-shadow: 0 0 0 4px rgba(57, 168, 117, .1);
}

.login-back-link {
    display: block;
    margin-top: 20px;
    color: #5f6c80;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}

.login-back-link:hover {
    color: var(--login-blue);
}

.auth-code-control input {
    padding: 0 18px;
    direction: ltr;
    text-align: center;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 23px;
    font-weight: 500;
    letter-spacing: 11px;
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100svh;
    padding: clamp(46px, 6vw, 84px);
    overflow: hidden;
    color: #fff;
    background: var(--login-navy);
}

.login-brand-panel::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .18;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.login-art {
    position: absolute;
    top: 46%;
    left: 52%;
    width: min(44vw, 590px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    animation: login-art-enter .75s cubic-bezier(.2, .72, .2, 1) both;
}

.login-orbit {
    position: absolute;
    inset: 50%;
    display: block;
    border: 1px solid rgba(148, 184, 255, .24);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.login-orbit::after {
    position: absolute;
    top: 18%;
    right: 10%;
    width: 8px;
    height: 8px;
    content: "";
    border: 2px solid var(--login-navy);
    border-radius: 50%;
    background: #75a7ff;
    box-shadow: 0 0 0 5px rgba(117, 167, 255, .1);
}

.login-orbit-one {
    width: 48%;
    height: 48%;
}

.login-orbit-two {
    width: 72%;
    height: 72%;
    border-color: rgba(148, 184, 255, .14);
}

.login-orbit-two::after {
    top: auto;
    right: auto;
    bottom: 12%;
    left: 18%;
    width: 6px;
    height: 6px;
    background: #42c693;
}

.login-orbit-three {
    width: 96%;
    height: 96%;
    border-color: rgba(148, 184, 255, .08);
}

.login-orbit-three::after {
    top: 54%;
    right: -1%;
    width: 5px;
    height: 5px;
}

.login-art-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 104px;
    height: 104px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 28px;
    background: #2563eb;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
    font-family: Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    transform: translate(-50%, -50%) rotate(-8deg);
}

.login-art-shield .login-art-core {
    border-radius: 50% 50% 48% 48%;
    font-size: 36px;
    transform: translate(-50%, -50%);
}

.login-brand-copy {
    position: relative;
    z-index: 2;
    max-width: 580px;
    margin-bottom: clamp(46px, 7vh, 72px);
    animation: login-copy-enter .65s .1s cubic-bezier(.2, .72, .2, 1) both;
}

.login-live-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #aab8cf;
    font-size: 12px;
}

.login-live-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42c693;
    box-shadow: 0 0 0 5px rgba(66, 198, 147, .1);
}

.login-brand-copy h2 {
    margin: 0 0 18px;
    color: #f8fafc;
    font-size: clamp(35px, 4.5vw, 62px);
    font-weight: 400;
    line-height: 1.42;
    letter-spacing: -1px;
}

.login-brand-copy p {
    max-width: 500px;
    margin: 0;
    color: #9aa9c0;
    font-size: 14px;
    line-height: 2;
}

.login-panel-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #65748d;
    font-family: "Segoe UI", "Yekan", sans-serif;
    font-size: 11px;
    letter-spacing: .3px;
}

@keyframes login-form-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes login-art-enter {
    from { opacity: 0; transform: translate(-50%, -47%) scale(.94); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes login-copy-enter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: minmax(390px, .95fr) 1.05fr;
    }

    .login-form-panel {
        padding-inline: 40px;
    }

    .login-brand-panel {
        padding-inline: 44px;
    }
}

@media (max-width: 760px) {
    .login-shell {
        display: block;
        min-height: 100svh;
        background: #fff;
    }

    .login-form-panel {
        min-height: 100svh;
        padding: 34px 24px;
    }

    .login-form-inner {
        max-width: 430px;
    }

    .login-brand {
        margin-bottom: 52px;
    }

    .login-heading {
        margin-bottom: 27px;
    }

    .login-heading h1 {
        font-size: 30px;
    }

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

@media (max-width: 420px) {
    .login-form-panel {
        align-items: flex-start;
        padding: 30px 19px;
    }

    .login-brand {
        margin-bottom: 45px;
    }
}

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