.ksf-login-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .72fr);
    background-color: #102d3b;
    background-image: url("/images/ksfleet-login-oman-fleet.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #172033;
    overflow-x: hidden;
}

.ksf-auth-body {
    direction: ltr;
    overflow-x: hidden;
    overflow-y: hidden;
}

.ksf-login-shell,
.ksf-login-shell * {
    box-sizing: border-box;
}

.ksf-login-visual {
    position: relative;
    min-height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    padding: clamp(32px, 5vw, 72px);
    min-width: 0;
}

.ksf-login-visual::after {
    display: none;
}

.ksf-login-visual-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    color: #fff;
    min-width: 0;
    isolation: isolate;
    animation: ksfLoginBlockIn .8s cubic-bezier(.2,.8,.2,1) both;
}

.ksf-login-visual-content::before {
    content: "";
    position: absolute;
    inset: -34px -42px;
    z-index: -1;
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 211, 189, .22), transparent 34%),
        radial-gradient(circle at 86% 74%, rgba(245, 184, 61, .18), transparent 32%);
    filter: blur(2px);
    opacity: .72;
    animation: ksfLoginAura 5.8s ease-in-out infinite;
}

.ksf-login-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    animation: ksfLoginRise .72s cubic-bezier(.2,.8,.2,1) .1s both;
}

.ksf-login-brand-mark,
.ksf-login-logo {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #0f766e, #f5b83d);
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 118, 110, .28);
}

.ksf-login-brand-mark {
    animation: ksfLoginMarkFloat 3.4s ease-in-out infinite;
}

.ksf-login-brand-name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 16px rgba(3, 10, 18, .55);
    animation: ksfLoginNameGlow 4.2s ease-in-out 1.2s infinite;
}

.ksf-login-visual h1 {
    max-width: 520px;
    font-size: clamp(32px, 4.25vw, 54px);
    line-height: 1.06;
    margin-bottom: 16px;
    font-weight: 800;
    color: #fff;
    overflow-wrap: break-word;
    text-transform: uppercase;
    text-shadow: 0 5px 20px rgba(2, 8, 15, .76), 0 1px 0 rgba(0,0,0,.22);
}

.ksf-login-hero-title span {
    display: block;
    opacity: 0;
    transform: translateY(18px);
    animation: ksfLoginLineIn .7s cubic-bezier(.2,.8,.2,1) both;
}

.ksf-login-hero-title span:nth-child(1) {
    animation-delay: .22s;
}

.ksf-login-hero-title span:nth-child(2) {
    animation-delay: .36s;
}

.ksf-login-hero-title span:nth-child(3) {
    animation-delay: .5s;
}

.ksf-login-hero-title span:last-child {
    color: #22d3bd;
    text-shadow: 0 6px 22px rgba(2, 8, 15, .78), 0 0 26px rgba(34,211,189,.32);
    animation: ksfLoginLineIn .7s cubic-bezier(.2,.8,.2,1) .5s both, ksfLoginTextPulse 3.6s ease-in-out 1.4s infinite;
}

.ksf-login-hero-title::after {
    content: "";
    display: block;
    width: 118px;
    height: 3px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3bd, #f5b83d, rgba(255,255,255,.08));
    box-shadow: 0 0 22px rgba(34,211,189,.34);
    transform-origin: left center;
    animation: ksfLoginAccentIn .82s cubic-bezier(.2,.8,.2,1) .64s both, ksfLoginAccentGlow 2.8s ease-in-out 1.2s infinite;
}

.ksf-login-visual p {
    max-width: 500px;
    color: rgba(255,255,255,.94);
    font-size: 16px;
    line-height: 1.65;
    text-shadow: 0 4px 16px rgba(2, 8, 15, .65);
    opacity: 0;
    transform: translateY(14px);
    animation: ksfLoginRise .72s cubic-bezier(.2,.8,.2,1) .78s both;
}

.ksf-login-region-card {
    display: none;
    width: min(100%, 460px);
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding: 14px 18px;
    border: 1px solid rgba(15,118,110,.5);
    border-radius: 8px;
    background: rgba(4, 47, 46, .72);
    color: #fff;
    box-shadow: 0 16px 34px rgba(4,47,46,.18);
}

.ksf-login-region-card i {
    color: #20c997;
    font-size: 28px;
}

.ksf-login-region-card strong,
.ksf-login-region-card small {
    display: block;
}

.ksf-login-region-card small {
    color: rgba(255,255,255,.72);
}

.ksf-login-proof {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.ksf-login-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(2, 36, 50, .62);
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,.9);
}

.ksf-login-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 4vw, 54px);
    background: transparent;
    min-width: 0;
    overflow-x: hidden;
    isolation: isolate;
}

.ksf-login-toolbar {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    z-index: 20;
}

.ksf-theme-toggle {
    width: 70px;
    height: 36px;
    border: 1px solid rgba(100,116,139,.26);
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
}

.ksf-login-card {
    box-sizing: border-box;
    width: min(100%, 448px);
    margin: 0 auto;
    padding: clamp(24px, 3.2vw, 36px);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.40), rgba(255,255,255,.22));
    box-shadow: 0 30px 90px rgba(3, 13, 24, .30), inset 0 1px 0 rgba(255,255,255,.56), 0 0 0 1px rgba(15,118,110,.16), 0 0 48px rgba(20,184,166,.22);
    backdrop-filter: blur(10px) saturate(1.22);
    position: relative;
    overflow: hidden;
    animation: ksfLoginCardGlow 4.2s ease-in-out infinite;
}

.ksf-login-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 18%, rgba(255,255,255,.32) 42%, transparent 62%);
    transform: translateX(-115%);
    animation: ksfLoginCardSheen 5.8s ease-in-out 1.2s infinite;
}

.ksf-login-card > * {
    position: relative;
    z-index: 1;
}

.ksf-login-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.ksf-login-card-header h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
}

.ksf-login-card-header p,
.ksf-login-card-title p {
    margin: 0;
    color: #64748b;
}

.ksf-login-kicker {
    display: inline-flex;
    color: #0f766e;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
}

.ksf-login-card-title h3 {
    margin-bottom: 6px;
    font-weight: 800;
}

.ksf-login-form {
    margin-top: 20px;
}

.ksf-login-form .validation-summary-valid.alert {
    display: none;
}

.ksf-login-form .validation-summary-errors.alert {
    display: block;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.ksf-login-form .validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

[dir="rtl"] .ksf-login-form .validation-summary-errors ul {
    padding-left: 0;
    padding-right: 18px;
}

.ksf-login-input {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #dbe3eb;
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ksf-login-input:focus-within {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15,118,110,.12);
}

.ksf-login-input > i {
    color: #64748b;
    font-size: 20px;
}

.ksf-login-input .form-control {
    border: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
    min-height: 46px;
}

.ksf-login-input .password-addon {
    padding: 0;
}

.ksf-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 16px;
}

.ksf-forgot-link {
    color: #0f766e;
    font-weight: 600;
}

.ksf-login-submit {
    height: 48px;
    border: 0;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #0f766e, #21a67a);
    box-shadow: 0 16px 32px rgba(15,118,110,.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ksf-login-footer {
    margin: 24px 0 0;
    text-align: center;
    color: #64748b;
}

@media (min-width: 992px) {
    .ksf-auth-body {
        overflow-y: hidden;
    }

    .ksf-login-shell {
        height: 100svh;
        min-height: 0;
    }

    .ksf-login-visual,
    .ksf-login-panel {
        height: 100%;
        min-height: 0;
    }

    .ksf-login-panel {
        padding-top: clamp(28px, 3vh, 54px);
        padding-bottom: clamp(28px, 3vh, 54px);
        overflow: visible;
    }

    .ksf-login-panel::before {
        display: none;
    }

    .ksf-login-card,
    .ksf-login-footer {
        position: relative;
        z-index: 1;
    }

    .ksf-login-toolbar {
        z-index: 20;
        margin-bottom: 16px;
    }

    .ksf-login-card {
        padding: clamp(20px, 2.2vw, 30px);
        transform: scale(.94);
        transform-origin: center center;
    }

    .ksf-login-card-header {
        margin-bottom: 16px;
    }

    .ksf-login-form {
        margin-top: 16px;
    }

    .ksf-login-footer {
        margin-top: 16px;
    }
}

.ksf-login-shell[data-login-theme="dark"] {
    background-color: #07111f;
    background-image: url("/images/ksfleet-login-oman-fleet.png");
    color: #e5edf5;
}

.ksf-login-shell[data-login-theme="dark"] .ksf-login-panel {
    background: transparent;
}

.ksf-login-shell[data-login-theme="dark"] .ksf-login-card,
.ksf-login-shell[data-login-theme="dark"] .ksf-theme-toggle {
    background: rgba(15,23,42,.46);
    border-color: rgba(148,163,184,.18);
    color: #e5edf5;
}

.ksf-login-shell[data-login-theme="dark"] .ksf-login-input {
    background: rgba(15,23,42,.9);
    border-color: rgba(148,163,184,.24);
}

.ksf-login-shell[data-login-theme="dark"] .ksf-login-input .form-control,
.ksf-login-shell[data-login-theme="dark"] .ksf-login-card-header p,
.ksf-login-shell[data-login-theme="dark"] .ksf-login-card-title p,
.ksf-login-shell[data-login-theme="dark"] .ksf-login-footer {
    color: #cbd5e1;
}

[dir="rtl"] .ksf-login-input .password-addon {
    transform: scaleX(-1);
}

[dir="rtl"] .ksf-login-shell {
    direction: ltr;
}

[dir="rtl"] .ksf-login-visual-content,
[dir="rtl"] .ksf-login-panel {
    direction: rtl;
}

[dir="rtl"] .ksf-login-hero-title::after {
    transform-origin: right center;
}

@keyframes ksfLoginBlockIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ksfLoginRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ksfLoginLineIn {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes ksfLoginAccentIn {
    from {
        opacity: 0;
        transform: scaleX(.18);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes ksfLoginAccentGlow {
    0%, 100% {
        width: 118px;
        box-shadow: 0 0 18px rgba(34,211,189,.30);
    }
    50% {
        width: 158px;
        box-shadow: 0 0 34px rgba(245,184,61,.36), 0 0 46px rgba(34,211,189,.32);
    }
}

@keyframes ksfLoginMarkFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 16px 34px rgba(15, 118, 110, .32);
    }
    50% {
        transform: translateY(-8px) scale(1.035);
        box-shadow: 0 26px 48px rgba(15, 118, 110, .44), 0 0 34px rgba(245,184,61,.28);
    }
}

@keyframes ksfLoginNameGlow {
    0%, 100% {
        text-shadow: 0 4px 16px rgba(3, 10, 18, .55);
    }
    50% {
        text-shadow: 0 4px 18px rgba(3, 10, 18, .68), 0 0 22px rgba(34,211,189,.26);
    }
}

@keyframes ksfLoginTextPulse {
    0%, 100% {
        color: #22d3bd;
        text-shadow: 0 6px 22px rgba(2, 8, 15, .78), 0 0 26px rgba(34,211,189,.32);
    }
    50% {
        color: #5ff0dd;
        text-shadow: 0 6px 24px rgba(2, 8, 15, .82), 0 0 42px rgba(34,211,189,.54), 0 0 18px rgba(245,184,61,.18);
    }
}

@keyframes ksfLoginCardGlow {
    0%, 100% {
        border-color: rgba(255,255,255,.70);
        box-shadow: 0 30px 90px rgba(3, 13, 24, .30), inset 0 1px 0 rgba(255,255,255,.56), 0 0 0 1px rgba(15,118,110,.16), 0 0 46px rgba(20,184,166,.22);
    }
    50% {
        border-color: rgba(34,211,189,.42);
        box-shadow: 0 34px 98px rgba(3, 13, 24, .34), inset 0 1px 0 rgba(255,255,255,.62), 0 0 0 1px rgba(245,184,61,.16), 0 0 62px rgba(20,184,166,.34), 0 0 22px rgba(245,184,61,.18);
    }
}

@keyframes ksfLoginCardSheen {
    0%, 60% {
        transform: translateX(-115%);
        opacity: 0;
    }
    72% {
        opacity: .8;
    }
    100% {
        transform: translateX(115%);
        opacity: 0;
    }
}

@keyframes ksfLoginAura {
    0%, 100% {
        opacity: .55;
        transform: translate3d(0,0,0) scale(1);
    }
    50% {
        opacity: .85;
        transform: translate3d(10px,-8px,0) scale(1.025);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ksf-login-visual-content,
    .ksf-login-visual-content::before,
    .ksf-login-brand-row,
    .ksf-login-brand-mark,
    .ksf-login-brand-name,
    .ksf-login-card,
    .ksf-login-card::before,
    .ksf-login-hero-title span,
    .ksf-login-hero-title::after,
    .ksf-login-visual p {
        animation: none !important;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 991.98px) {
    .ksf-login-shell {
        display: block;
        min-height: 100vh;
        overflow-y: auto;
    }

    .ksf-login-visual {
        width: 100%;
        min-height: 340px;
        padding: 32px 22px;
        align-items: flex-end;
        background-position: left center;
    }

    .ksf-login-visual h1 {
        font-size: clamp(26px, 8vw, 38px);
    }

    .ksf-login-visual-content {
        width: 100%;
        max-width: 100%;
    }

    .ksf-login-panel {
        width: 100%;
        min-height: auto;
        padding-top: 88px;
    }

    .ksf-login-card {
        width: 100%;
        max-width: 480px;
    }

    .ksf-login-card-header {
        align-items: flex-start;
    }

    .ksf-login-card-header > div {
        min-width: 0;
    }

    .ksf-login-card-header h2 {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 575.98px) {
    .ksf-login-visual {
        min-height: 180px;
        background-position: center;
    }

    .ksf-login-visual-content {
        display: none;
    }

    .ksf-login-proof {
        display: none;
    }

    .ksf-login-toolbar {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        margin: 0 0 18px;
        display: grid;
        grid-template-columns: max-content max-content;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        direction: ltr;
        overflow: visible;
    }

    .ksf-theme-toggle {
        position: static;
        flex: 0 0 auto;
        width: 58px;
    }

    .ksf-login-card {
        width: min(100%, 310px);
        max-width: 310px;
        margin: 0 auto;
        padding: 22px 16px;
        overflow: hidden;
    }

    .ksf-login-panel {
        padding: 18px 16px 24px;
        align-items: center;
        overflow: hidden;
    }

    .ksf-login-card .ksf-language-toggle {
        flex: 0 0 auto;
    }

    .ksf-login-form,
    .ksf-login-input,
    .ksf-login-submit,
    .ksf-login-options {
        width: 100%;
        max-width: 100%;
    }

    .ksf-login-logo {
        display: none;
    }

    .ksf-login-card-header,
    .ksf-login-card-title {
        display: block;
        text-align: center;
    }

    .ksf-login-card-header h2 {
        font-size: 24px;
    }

    .ksf-login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}
