.hrms-auth-body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 14%, rgba(91, 205, 196, 0.3), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(100, 149, 237, 0.24), transparent 30%),
        radial-gradient(circle at 74% 88%, rgba(193, 141, 229, 0.2), transparent 31%),
        linear-gradient(145deg, #edf6f7 0%, #f2f5fb 50%, #f7f1fb 100%);
}

.hrms-auth {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 24px;
    isolation: isolate;
}

.hrms-auth__ambient {
    position: fixed;
    z-index: -1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.55;
    pointer-events: none;
}

.hrms-auth__ambient--one {
    top: -220px;
    left: -120px;
    background: radial-gradient(circle, rgba(19, 170, 156, 0.2), transparent 68%);
}

.hrms-auth__ambient--two {
    right: -180px;
    bottom: -240px;
    background: radial-gradient(circle, rgba(36, 99, 235, 0.12), transparent 68%);
}

.hrms-auth__topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, 100%);
    margin: 0 auto 24px;
}

.hrms-auth__shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
    width: min(1180px, 100%);
    min-height: min(720px, calc(100vh - 112px));
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--hrms-glass-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--hrms-glass-shadow);
    backdrop-filter: var(--hrms-glass-blur);
    -webkit-backdrop-filter: var(--hrms-glass-blur);
    animation: hrms-auth-shell-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hrms-auth__showcase {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(36px, 5vw, 68px);
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 84% 18%, rgba(25, 181, 166, 0.24), transparent 26%),
        linear-gradient(145deg, rgba(7, 26, 47, 0.96), rgba(12, 52, 81, 0.91) 72%, rgba(11, 82, 99, 0.88));
    background-size: 38px 38px, 38px 38px, auto, auto;
    color: #fff;
}

.hrms-auth__showcase::after {
    position: absolute;
    right: -100px;
    bottom: -140px;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(255, 255, 255, 0.022),
        0 0 0 86px rgba(255, 255, 255, 0.018);
    content: "";
}

[dir="rtl"] .hrms-auth__showcase::after {
    right: auto;
    left: -100px;
}

.hrms-auth__showcase-copy {
    position: relative;
    z-index: 1;
    max-width: 510px;
}

.hrms-auth__showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #7fe2d8;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hrms-auth__showcase-eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4dd4c6;
    box-shadow: 0 0 0 5px rgba(77, 212, 198, 0.12);
    content: "";
}

.hrms-auth__showcase-title {
    max-width: 520px;
    margin: 0;
    color: #f7fbff;
    font-size: clamp(2rem, 3.6vw, 3.55rem);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

[dir="rtl"] .hrms-auth__showcase-title {
    line-height: 1.42;
    letter-spacing: 0;
}

.hrms-auth__preview {
    position: relative;
    z-index: 1;
    width: min(510px, 96%);
    margin: 44px 0 38px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 70px rgba(1, 15, 29, 0.38);
    transform: perspective(900px) rotateY(-3deg) rotateX(1deg);
    transform-origin: left center;
    animation: hrms-auth-preview-in 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

[dir="rtl"] .hrms-auth__preview {
    transform: perspective(900px) rotateY(3deg) rotateX(1deg);
    transform-origin: right center;
}

.hrms-auth__preview-head {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 14px;
    border-bottom: 1px solid #e9eef3;
}

.hrms-auth__preview-logo {
    display: grid;
    place-items: center;
    width: 34px;
    height: 21px;
}

.hrms-auth__preview-logo img {
    width: 34px;
    height: auto;
    max-width: none;
}

.hrms-auth__preview-lines {
    display: grid;
    flex: 1;
    gap: 4px;
}

.hrms-auth__preview-lines i,
.hrms-auth__preview-heading,
.hrms-auth__preview-nav span,
.hrms-auth__preview-stats b,
.hrms-auth__preview-stats i {
    display: block;
    border-radius: 99px;
    background: #dce5ec;
}

.hrms-auth__preview-lines i:first-child {
    width: 48px;
    height: 5px;
    background: #9aabb8;
}

.hrms-auth__preview-lines i:last-child {
    width: 31px;
    height: 3px;
}

.hrms-auth__preview-avatar {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: linear-gradient(145deg, #bed3e0, #7fa0b4);
}

.hrms-auth__preview-body {
    display: grid;
    grid-template-columns: 62px 1fr;
    min-height: 215px;
    background: #f6f8fa;
}

.hrms-auth__preview-nav {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 13px;
    padding-top: 20px;
    border-right: 1px solid #e5ebf0;
    background: #fff;
}

[dir="rtl"] .hrms-auth__preview-nav {
    border-right: 0;
    border-left: 1px solid #e5ebf0;
}

.hrms-auth__preview-nav span {
    width: 30px;
    height: 6px;
}

.hrms-auth__preview-nav .is-active {
    background: #0b8f83;
}

.hrms-auth__preview-content {
    padding: 22px;
}

.hrms-auth__preview-heading {
    width: 92px;
    height: 8px;
    margin-bottom: 18px;
    background: #718798;
}

.hrms-auth__preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.hrms-auth__preview-stats span {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e6ebf0;
    border-radius: 8px;
    background: #fff;
}

.hrms-auth__preview-stats b {
    width: 34px;
    height: 9px;
    background: #173e59;
}

.hrms-auth__preview-stats i {
    width: 50px;
    height: 4px;
}

.hrms-auth__preview-chart {
    height: 90px;
    margin-top: 16px;
    color: #13aa9c;
}

.hrms-auth__preview-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hrms-auth__trust {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(232, 242, 248, 0.74);
    font-size: 0.76rem;
    line-height: 1.55;
}

.hrms-auth__trust-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #52d6c8;
    box-shadow: 0 0 0 5px rgba(82, 214, 200, 0.1);
}

.hrms-auth__panel {
    display: grid;
    place-items: center;
    padding: clamp(34px, 6vw, 78px);
    position: relative;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(34px) saturate(150%);
    -webkit-backdrop-filter: blur(34px) saturate(150%);
}

.hrms-auth__panel::before {
    position: absolute;
    inset: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 42%);
    content: "";
    pointer-events: none;
}

[dir="rtl"] .hrms-auth__panel::before {
    border-right: 1px solid rgba(255, 255, 255, 0.72);
    border-left: 0;
}

.hrms-auth__form-wrap {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    animation: hrms-auth-form-in 0.65s ease 0.12s both;
}

.hrms-auth__mobile-mark {
    display: none;
}

.hrms-auth__mobile-mark {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
}

.hrms-auth__mobile-mark img {
    width: 76px;
    height: auto;
    max-width: none;
}

.hrms-auth__title {
    margin: 0;
    color: var(--hrms-color-ink-950);
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

[dir="rtl"] .hrms-auth__title {
    line-height: 1.5;
    letter-spacing: 0;
}

.hrms-auth__description {
    margin: 12px 0 0;
    color: var(--hrms-color-ink-500);
    font-size: 0.94rem;
    line-height: 1.65;
}

.hrms-auth__alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 26px;
    padding: 11px 13px;
    border: 1px solid #fecdca;
    border-radius: var(--hrms-radius-sm);
    background: #fef3f2;
    color: var(--hrms-color-danger);
    font-size: 0.82rem;
    line-height: 1.55;
}

.hrms-auth__alert svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.hrms-auth__form {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.hrms-auth__field {
    display: grid;
    gap: 7px;
}

.hrms-auth__label {
    color: var(--hrms-color-ink-700);
    font-size: 0.82rem;
    font-weight: 600;
}

.hrms-auth__control {
    position: relative;
    display: block;
}

.hrms-auth__control-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #98a2b3;
    transform: translateY(-50%);
    pointer-events: none;
}

[dir="rtl"] .hrms-auth__control-icon {
    right: 14px;
    left: auto;
}

.hrms-auth__input {
    width: 100%;
    height: 48px;
    padding: 0 43px;
    border: 1px solid rgba(170, 185, 199, 0.62);
    border-radius: var(--hrms-radius-sm);
    background: rgba(255, 255, 255, 0.64);
    color: var(--hrms-color-ink-950);
    outline: none;
    box-shadow: var(--hrms-shadow-sm);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.hrms-auth__input::placeholder {
    color: #98a2b3;
}

.hrms-auth__input:hover {
    border-color: #aeb8c4;
}

.hrms-auth__input:focus {
    border-color: var(--hrms-color-accent-500);
    box-shadow: 0 0 0 4px rgba(19, 170, 156, 0.11);
}

.hrms-auth__password-toggle {
    position: absolute;
    top: 50%;
    right: 11px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #98a2b3;
    transform: translateY(-50%);
}

[dir="rtl"] .hrms-auth__password-toggle {
    right: auto;
    left: 11px;
}

.hrms-auth__password-toggle:hover {
    background: #f2f4f7;
    color: var(--hrms-color-ink-700);
}

.hrms-auth__password-toggle svg {
    width: 18px;
    height: 18px;
}

.hrms-auth__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 49px;
    margin-top: 4px;
    border: 1px solid #087e74;
    border-radius: var(--hrms-radius-sm);
    background: linear-gradient(180deg, #12a99b, #0b8f83);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 8px 20px rgba(11, 143, 131, 0.2);
    color: #fff;
    font-weight: 650;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.hrms-auth__submit:hover {
    filter: brightness(1.04);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 10px 24px rgba(11, 143, 131, 0.28);
    transform: translateY(-1px);
}

.hrms-auth__submit:active {
    box-shadow: var(--hrms-shadow-sm);
    transform: translateY(0);
}

.hrms-auth__submit svg {
    width: 18px;
    height: 18px;
}

[dir="rtl"] .hrms-auth__submit svg {
    transform: scaleX(-1);
}

.hrms-auth__alert--ok {
    border-color: rgba(11, 143, 131, 0.28);
    background: rgba(11, 143, 131, 0.08);
    color: #0b5f58;
}

.hrms-auth__alt {
    display: grid;
    gap: 6px;
    margin: 18px 0 0;
    color: var(--hrms-color-ink-500);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

.hrms-auth__alt-link {
    color: #0b8f83;
    font-weight: 650;
    text-decoration: none;
}

.hrms-auth__alt-link:hover {
    text-decoration: underline;
}

.hrms-auth__code {
    letter-spacing: 0.28em;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
}

@keyframes hrms-auth-shell-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.992);
    }
}

@keyframes hrms-auth-form-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes hrms-auth-preview-in {
    from {
        opacity: 0;
        transform: perspective(900px) rotateY(-3deg) translateY(20px);
    }
}

@media (max-width: 880px) {
    .hrms-auth {
        padding: 18px;
    }

    .hrms-auth__shell {
        grid-template-columns: 1fr;
        width: min(560px, 100%);
        min-height: 0;
    }

    .hrms-auth__topbar {
        width: min(560px, 100%);
    }

    .hrms-auth__showcase {
        display: none;
    }

    .hrms-auth__panel {
        min-height: min(610px, calc(100vh - 100px));
        padding: 54px 40px;
    }

    .hrms-auth__mobile-mark {
        display: grid;
        place-items: center;
        width: 76px;
        height: 48px;
        margin-bottom: 30px;
    }
}

@media (max-width: 520px) {
    .hrms-auth {
        padding: 14px;
    }

    .hrms-auth__topbar {
        margin-bottom: 14px;
    }

    .hrms-auth__brand .hrms-ui__brand-name {
        display: none;
    }

    .hrms-auth__shell {
        border-radius: 18px;
    }

    .hrms-auth__panel {
        min-height: calc(100vh - 86px);
        padding: 42px 24px;
    }
}
