:root {
    --login-page-bg: #f1f5f9;
    --login-surface: #fff;
    --login-surface-soft: #f8fafc;
    --login-text: #0f172a;
    --login-muted: #64748b;
    --login-label: #334155;
    --login-line: #e2e8f0;
    --login-field: #f8fafc;
    --login-field-focus: #fff;
    --login-primary: #2563eb;
    --login-primary-deep: #4f46e5;
    --login-ring: rgb(37 99 235 / 12%);
    --login-shadow: 0 28px 80px rgb(51 65 85 / 18%);

    color-scheme: light;
}

html[data-theme="dark"] {
    --login-page-bg: #020617;
    --login-surface: #0f172a;
    --login-surface-soft: #111c30;
    --login-text: #f8fafc;
    --login-muted: #94a3b8;
    --login-label: #cbd5e1;
    --login-line: #26334a;
    --login-field: rgb(30 41 59 / 64%);
    --login-field-focus: #1e293b;
    --login-primary: #3b82f6;
    --login-primary-deep: #6366f1;
    --login-ring: rgb(59 130 246 / 14%);
    --login-shadow: 0 32px 90px rgb(0 0 0 / 58%);

    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

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

html[dir="rtl"] body {
    font-family: Cairo, Tahoma, Arial, sans-serif;
}

html[dir="ltr"] body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body {
    overflow-x: hidden;
    color: var(--login-text);
    background: var(--login-page-bg);
}

button,
input,
a {
    font: inherit;
}

button,
a,
input[type="checkbox"] {
    touch-action: manipulation;
}

.login-page {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(16px, 3vw, 40px);
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 91% 3%, rgb(59 130 246 / 18%), transparent 31%),
        radial-gradient(circle at 4% 96%, rgb(99 102 241 / 18%), transparent 29%), var(--login-page-bg);
}

.login-ambient {
    position: fixed;
    z-index: -1;
    width: min(42vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(78px);
    pointer-events: none;
    opacity: 0.62;
    animation: login-ambient-breathe 7s ease-in-out infinite;
}

.login-ambient-one {
    top: -280px;
    inset-inline-end: -220px;
    background: rgb(59 130 246 / 22%);
}

.login-ambient-two {
    bottom: -300px;
    inset-inline-start: -220px;
    background: rgb(99 102 241 / 20%);
    animation-delay: -3.5s;
}

.login-shell {
    position: relative;
    display: grid;
    width: min(1152px, 100%);
    min-height: min(720px, calc(100dvh - clamp(32px, 6vw, 80px)));
    grid-template-columns: minmax(390px, 5fr) minmax(0, 7fr);
    overflow: hidden;
    border: 1px solid var(--login-line);
    border-radius: 26px;
    background: var(--login-surface);
    box-shadow: var(--login-shadow);
    animation: login-shell-enter 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.login-form-panel,
.login-brand-panel {
    min-width: 0;
}

.login-form-panel {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100%;
    padding: clamp(30px, 4vw, 48px);
    flex-direction: column;
    background: radial-gradient(circle at 100% 0%, rgb(59 130 246 / 7%), transparent 28%), var(--login-surface);
}

.login-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-language {
    display: flex;
    min-height: 36px;
    padding: 3px;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--login-line);
    border-radius: 12px;
    background: var(--login-surface-soft);
    box-shadow: 0 5px 14px rgb(15 23 42 / 5%);
}

.login-language > i {
    display: grid;
    width: 28px;
    color: var(--login-primary);
    place-items: center;
}

.login-language a {
    display: inline-flex;
    min-width: 38px;
    min-height: 28px;
    padding-inline: 9px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--login-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.login-language a:hover,
.login-language a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--login-primary), var(--login-primary-deep));
    box-shadow: 0 5px 12px rgb(37 99 235 / 20%);
}

.login-theme-toggle {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--login-line);
    border-radius: 12px;
    color: var(--login-label);
    background: var(--login-surface-soft);
    box-shadow: 0 5px 14px rgb(15 23 42 / 5%);
    cursor: pointer;
    place-items: center;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.login-theme-toggle:hover {
    color: #f59e0b;
    border-color: rgb(245 158 11 / 40%);
    transform: rotate(10deg);
}

.login-form-content {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding-block: 24px;
    animation: login-form-enter 0.68s cubic-bezier(0.2, 0.8, 0.2, 1) 0.22s both;
}

.login-secure-badge,
.login-online-badge {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 27px;
    padding: 4px 10px;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.login-secure-badge {
    color: #1d4ed8;
    border: 1px solid rgb(59 130 246 / 22%);
    background: rgb(59 130 246 / 8%);
}

html[data-theme="dark"] .login-secure-badge {
    color: #60a5fa;
    border-color: rgb(96 165 250 / 22%);
    background: rgb(59 130 246 / 10%);
}

.login-form-content h1 {
    margin: 13px 0 4px;
    color: var(--login-text);
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.3;
}

.login-form-hint {
    margin: 0 0 25px;
    color: var(--login-muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.75;
}

.login-error {
    display: grid;
    margin-bottom: 16px;
    padding: 11px 13px;
    gap: 5px;
    border: 1px solid rgb(239 68 68 / 28%);
    border-radius: 12px;
    color: #dc2626;
    background: rgb(239 68 68 / 8%);
    font-size: 0.77rem;
    font-weight: 700;
}

.login-error div {
    display: flex;
    align-items: center;
    gap: 7px;
}

html[data-theme="dark"] .login-error {
    color: #fca5a5;
}

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

.login-field {
    min-width: 0;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--login-label);
    font-size: 0.73rem;
    font-weight: 800;
}

.login-input-wrap {
    position: relative;
    display: flex;
    min-height: 49px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--login-line);
    border-radius: 14px;
    background: var(--login-field);
    box-shadow: inset 0 1px 2px rgb(15 23 42 / 3%);
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.login-input-wrap:focus-within {
    border-color: rgb(59 130 246 / 60%);
    background: var(--login-field-focus);
    box-shadow:
        0 0 0 4px var(--login-ring),
        0 10px 24px rgb(37 99 235 / 8%);
    transform: translateY(-1px);
}

.login-input-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #6366f1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

html[dir="rtl"] .login-input-wrap::after {
    transform-origin: right;
}

.login-input-wrap:focus-within::after {
    transform: scaleX(1);
}

.login-input-wrap > i {
    position: absolute;
    inset-inline-start: 14px;
    z-index: 1;
    color: #94a3b8;
    pointer-events: none;
}

.login-input-wrap input[type="text"],
.login-input-wrap input[type="password"] {
    width: 100%;
    min-width: 0;
    min-height: 49px;
    padding: 12px 43px 12px 14px;
    padding-inline-start: 42px;
    border: 0;
    outline: 0;
    color: var(--login-text);
    background: transparent;
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 700;
}

.login-input-wrap input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.login-input-wrap input:-webkit-autofill,
.login-input-wrap input:-webkit-autofill:hover,
.login-input-wrap input:-webkit-autofill:focus {
    caret-color: var(--login-text);
    -webkit-text-fill-color: var(--login-text);
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-box-shadow: 0 0 0 1000px var(--login-field) inset !important;
    transition: background-color 9999s ease-out 0s;
}

.login-password-toggle {
    position: absolute;
    inset-inline-end: 7px;
    z-index: 2;
    display: grid;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #94a3b8;
    background: transparent;
    cursor: pointer;
    place-items: center;
}

.login-password-toggle:hover {
    color: var(--login-primary);
    background: var(--login-ring);
}

.login-options {
    display: flex;
    min-width: 0;
    margin: 1px 0 2px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--login-muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

#remember-me {
    position: relative;
    width: 17px;
    height: 17px;
    margin: 0;
    appearance: none;
    border: 1px solid var(--login-line);
    border-radius: 5px;
    background: var(--login-field);
    cursor: pointer;
}

#remember-me:checked {
    border-color: var(--login-primary);
    background: linear-gradient(135deg, var(--login-primary), var(--login-primary-deep));
    box-shadow: 0 4px 10px rgb(37 99 235 / 23%);
}

#remember-me:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    inset-inline-start: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-options a {
    color: var(--login-primary);
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.login-options a:hover {
    text-decoration: underline;
}

.login-submit {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    width: 100%;
    min-height: 49px;
    padding: 12px 16px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow:
        0 13px 25px rgb(37 99 235 / 25%),
        inset 0 1px 0 rgb(255 255 255 / 18%);
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.login-submit::before {
    content: "";
    position: absolute;
    top: -90%;
    left: -36%;
    width: 24%;
    height: 280%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 42%), transparent);
    transform: rotate(20deg);
    animation: login-button-shine 4.4s ease-in-out 1.4s infinite;
}

.login-submit:hover {
    filter: brightness(1.06);
    box-shadow: 0 16px 30px rgb(37 99 235 / 31%);
    transform: translateY(-1px);
}

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

.login-submit.is-loading .login-submit-arrow {
    animation: login-submit-pulse 0.7s ease-in-out infinite alternate;
}

html[dir="ltr"] .login-submit-arrow {
    transform: rotate(180deg);
}

.login-security-grid {
    display: grid;
    margin-top: 17px;
    padding-top: 15px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    border-top: 1px solid var(--login-line);
}

.login-security-grid > span {
    display: grid;
    min-width: 0;
    min-height: 52px;
    padding: 7px 5px;
    align-content: center;
    border: 1px solid var(--login-line);
    border-radius: 11px;
    text-align: center;
    background: var(--login-surface-soft);
}

.login-security-grid small,
.login-security-grid b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-security-grid small {
    color: #94a3b8;
    font-size: 0.58rem;
    font-weight: 700;
}

.login-security-grid b {
    margin-top: 2px;
    color: var(--login-label);
    font-size: 0.65rem;
    font-weight: 900;
}

.login-license-footer {
    padding-top: 12px;
    border-top: 1px solid var(--login-line);
    color: var(--login-muted);
    text-align: center;
    font-size: 0.63rem;
    font-weight: 700;
    line-height: 1.7;
}

.login-brand-panel {
    position: relative;
    display: flex;
    min-height: 100%;
    padding: clamp(30px, 4vw, 48px);
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 10% 108%, rgb(14 165 233 / 24%), transparent 35%),
        radial-gradient(circle at 91% -7%, rgb(99 102 241 / 30%), transparent 32%),
        linear-gradient(145deg, #1d4ed8 0%, #3730a3 48%, #0f172a 100%);
}

html[data-theme="dark"] .login-brand-panel {
    background:
        radial-gradient(circle at 8% 105%, rgb(30 64 175 / 27%), transparent 36%),
        radial-gradient(circle at 94% -8%, rgb(30 58 138 / 34%), transparent 34%),
        linear-gradient(145deg, #020617 0%, #0f172a 52%, #172554 100%);
}

.login-brand-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    pointer-events: none;
    background-image: radial-gradient(rgb(255 255 255 / 88%) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(130deg, #000, transparent 72%);
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 50%;
    pointer-events: none;
}

.login-brand-panel::before {
    top: -300px;
    inset-inline-end: -230px;
    width: 590px;
    height: 590px;
    box-shadow:
        0 0 0 70px rgb(255 255 255 / 2%),
        0 0 0 140px rgb(255 255 255 / 1%);
    animation: login-ring-breathe 7s ease-in-out infinite;
}

.login-brand-panel::after {
    bottom: -180px;
    inset-inline-start: -110px;
    width: 280px;
    height: 280px;
    background: rgb(255 255 255 / 3%);
}

.login-brand-header,
.login-brand-content,
.login-brand-footer {
    position: relative;
    z-index: 1;
}

.login-brand-header {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    animation: login-brand-header-enter 0.56s ease 0.12s both;
}

.login-brand-logos {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.login-system-logo,
.login-customer-logo {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 13px;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgb(2 6 23 / 18%);
}

.login-system-logo {
    min-width: 158px;
    padding: 5px 12px;
    background: rgb(3 7 18 / 72%);
}

.login-system-logo img {
    display: block;
    width: auto;
    height: 38px;
    max-width: 178px;
    object-fit: contain;
    filter: drop-shadow(0 5px 13px rgb(201 169 97 / 18%));
}

.login-customer-logo {
    min-width: 86px;
    padding: 6px 10px;
    border-color: rgb(255 255 255 / 60%);
    background: rgb(255 255 255 / 95%);
}

.login-customer-logo img {
    display: block;
    width: auto;
    height: 34px;
    max-width: 98px;
    object-fit: contain;
}

.login-brand-connection {
    display: grid;
    min-width: 0;
    justify-items: end;
    gap: 3px;
    text-align: end;
}

.login-brand-connection span {
    color: rgb(226 232 240 / 88%);
    font-size: 0.64rem;
    font-weight: 600;
}

.login-brand-connection b {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #34d399;
    font-size: 0.68rem;
    font-weight: 800;
}

.login-brand-content {
    width: 100%;
    max-width: 570px;
    margin-block: auto;
    padding-block: 25px;
    animation: login-brand-content-enter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}

.login-online-badge {
    color: #bfdbfe;
    border: 1px solid rgb(255 255 255 / 16%);
    background: rgb(255 255 255 / 8%);
    backdrop-filter: blur(12px);
}

.login-online-badge > i,
.login-ssl > i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgb(52 211 153 / 10%);
    animation: login-online-pulse 2.5s ease-in-out infinite;
}

.login-brand-content h2 {
    margin: 14px 0 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.18;
}

.login-brand-content h2 em {
    color: transparent;
    background: linear-gradient(90deg, #bfdbfe, #c7d2fe, #bae6fd);
    background-clip: text;
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-background-clip: text;
    font-style: normal;
}

.login-brand-content > p {
    max-width: 535px;
    margin: 12px 0 0;
    color: rgb(226 232 240 / 88%);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.9;
}

.login-workspace-card {
    margin-top: 23px;
    padding: 17px;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 17px;
    background: rgb(15 23 42 / 35%);
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 4%),
        0 18px 36px rgb(2 6 23 / 10%);
    backdrop-filter: blur(16px);
}

.login-workspace-card > header {
    display: flex;
    padding-bottom: 11px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.login-workspace-card > header strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #f8fafc;
    font-size: 0.7rem;
    font-weight: 900;
}

.login-workspace-card > header strong i {
    color: #93c5fd;
}

.login-workspace-card > header > span {
    padding: 3px 9px;
    border-radius: 999px;
    color: #6ee7b7;
    background: rgb(16 185 129 / 15%);
    font-size: 0.58rem;
    font-weight: 800;
}

.login-workspace-metrics {
    display: grid;
    margin-top: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.login-workspace-metrics > span {
    display: grid;
    min-width: 0;
    min-height: 68px;
    padding: 7px;
    align-content: center;
    justify-items: center;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 11px;
    background: rgb(255 255 255 / 5%);
    text-align: center;
}

.login-workspace-metrics small,
.login-workspace-metrics b {
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-workspace-metrics small {
    color: #cbd5e1;
    font-size: 0.56rem;
    font-weight: 700;
}

.login-workspace-metrics i {
    margin-block: 4px;
    color: #93c5fd;
    font-size: 0.88rem;
}

.login-workspace-metrics > span:nth-child(2) i {
    color: #fcd34d;
}

.login-workspace-metrics > span:nth-child(3) i {
    color: #6ee7b7;
}

.login-workspace-metrics b {
    color: #fff;
    font-size: 0.64rem;
    font-weight: 900;
}

.login-readiness {
    display: grid;
    margin-top: 12px;
    gap: 8px;
}

.login-readiness > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    color: #cbd5e1;
    font-size: 0.57rem;
    font-weight: 700;
}

.login-readiness > div > b {
    color: #93c5fd;
}

.login-readiness > div:nth-child(2) > b {
    color: #6ee7b7;
}

.login-readiness > div > i {
    grid-column: 1 / -1;
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(2 6 23 / 28%);
}

.login-readiness > div > i > em {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #a5b4fc);
    transform: scaleX(0);
    transform-origin: left;
    animation: login-progress-grow 0.9s cubic-bezier(0.2, 0.75, 0.25, 1) 0.9s forwards;
}

.login-readiness > div:nth-child(2) > i > em {
    background: linear-gradient(90deg, #34d399, #99f6e4);
}

html[dir="rtl"] .login-readiness > div > i > em {
    transform-origin: right;
}

.login-brand-footer {
    display: flex;
    padding-top: 11px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    color: #94a3b8;
    font-size: 0.6rem;
    font-weight: 700;
}

.login-ssl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #34d399;
    white-space: nowrap;
}

.login-theme-toggle:focus-visible,
.login-language a:focus-visible,
.login-password-toggle:focus-visible,
.login-submit:focus-visible,
#remember-me:focus-visible {
    outline: 3px solid var(--login-ring);
    outline-offset: 2px;
}

@keyframes login-shell-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.987);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes login-form-enter {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

html[dir="rtl"] .login-form-content {
    animation-name: login-form-enter-rtl;
}

@keyframes login-form-enter-rtl {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes login-brand-header-enter {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes login-brand-content-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes login-progress-grow {
    to {
        transform: scaleX(1);
    }
}

@keyframes login-button-shine {
    0%,
    64% {
        left: -36%;
    }

    84%,
    100% {
        left: 128%;
    }
}

@keyframes login-submit-pulse {
    to {
        transform: translateX(-4px);
    }
}

@keyframes login-online-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgb(52 211 153 / 0%);
    }

    50% {
        box-shadow: 0 0 0 5px rgb(52 211 153 / 13%);
    }
}

@keyframes login-ring-breathe {
    0%,
    100% {
        transform: scale(0.97);
    }

    50% {
        transform: scale(1.03);
    }
}

@keyframes login-ambient-breathe {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.72;
        transform: scale(1.05);
    }
}

@media (width <= 1120px) and (width > 900px) {
    .login-shell {
        grid-template-columns: minmax(365px, 5fr) minmax(0, 7fr);
    }

    .login-form-panel,
    .login-brand-panel {
        padding: 30px;
    }

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

@media (width > 900px) and (height <= 760px) {
    .login-page {
        padding: 12px;
    }

    .login-shell {
        min-height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
    }

    .login-form-panel,
    .login-brand-panel {
        padding-block: 24px;
    }

    .login-form-content,
    .login-brand-content {
        padding-block: 15px;
    }

    .login-workspace-card {
        margin-top: 14px;
        padding: 13px;
    }

    .login-brand-content h2 {
        font-size: clamp(1.8rem, 3.6vw, 2.35rem);
    }

    .login-brand-content > p {
        margin-top: 8px;
        line-height: 1.65;
    }

    .login-license-footer,
    .login-brand-footer {
        padding-top: 8px;
    }
}

@media (width > 900px) and (height <= 630px) {
    .login-security-grid,
    .login-workspace-card {
        display: none;
    }
}

@media (width <= 900px) {
    body {
        overflow-y: auto;
    }

    .login-page {
        overflow: visible;
        place-items: start center;
    }

    .login-shell {
        width: min(640px, 100%);
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        border-radius: 22px;
    }

    .login-form-panel {
        min-height: 650px;
        order: 1;
    }

    .login-brand-panel {
        min-height: 480px;
        order: 2;
    }

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

@media (width <= 640px) {
    .login-page {
        padding: 0;
        background: var(--login-surface);
    }

    .login-ambient {
        display: none;
    }

    .login-shell {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-panel {
        min-height: 100dvh;
        padding: 20px clamp(18px, 6vw, 30px) 24px;
    }

    .login-form-content {
        padding-block: 25px;
    }

    .login-form-content h1 {
        font-size: clamp(1.55rem, 7vw, 1.85rem);
    }

    .login-brand-panel {
        min-height: 330px;
        padding: 24px;
    }

    .login-brand-connection,
    .login-workspace-card {
        display: none;
    }

    .login-brand-content {
        padding-block: 24px;
    }

    .login-brand-content h2 {
        font-size: 1.8rem;
    }

    .login-system-logo {
        min-width: 145px;
    }

    .login-system-logo img {
        max-width: 160px;
    }
}

@media (width <= 390px) {
    .login-form-panel {
        padding-inline: 16px;
    }

    .login-language > i {
        display: none;
    }

    .login-form-hint {
        margin-bottom: 19px;
    }

    .login-options {
        gap: 8px;
    }

    .login-options a,
    .login-remember {
        font-size: 0.67rem;
    }

    .login-security-grid {
        gap: 4px;
    }

    .login-customer-logo {
        min-width: 72px;
    }
}

@media (width <= 1024px) and (height <= 560px) and (orientation: landscape) {
    .login-page {
        height: 100dvh;
        min-height: 0;
        padding: 0;
        overflow: hidden;
    }

    .login-shell {
        width: 100%;
        height: 100dvh;
        min-height: 0;
        max-height: none;
        grid-template-columns: minmax(360px, 52%) minmax(0, 48%);
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-panel,
    .login-brand-panel {
        min-height: 0;
        order: initial;
        padding: 16px 24px;
        overflow-y: auto;
    }

    .login-form-content {
        max-width: 390px;
        padding-block: 8px;
    }

    .login-form-content h1 {
        margin-top: 7px;
        font-size: 1.35rem;
    }

    .login-form-hint {
        margin-bottom: 9px;
    }

    .login-form {
        gap: 8px;
    }

    .login-field label {
        margin-bottom: 3px;
    }

    .login-input-wrap,
    .login-input-wrap input[type="text"],
    .login-input-wrap input[type="password"] {
        min-height: 42px;
    }

    .login-submit {
        min-height: 42px;
        padding-block: 9px;
    }

    .login-security-grid,
    .login-secure-badge,
    .login-brand-connection,
    .login-workspace-card,
    .login-license-footer {
        display: none;
    }

    .login-brand-content h2 {
        font-size: 1.8rem;
    }

    .login-brand-content > p {
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-shell,
    .login-form-content,
    .login-brand-header,
    .login-brand-content,
    .login-readiness > div > i > em,
    .login-submit::before,
    .login-online-badge > i,
    .login-ssl > i,
    .login-brand-panel::before,
    .login-ambient {
        animation: none !important;
    }

    .login-readiness > div > i > em {
        transform: scaleX(1);
    }
}
