:root {
    --ku: #003d82;
    --ku-dark: #002a5c;
    --ink: #16202f;
    --muted: #6b7789;
    --line: #e6ebf3;
}

* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

html {
    height: 100%;
}
/* 
body {
    margin: 0;
    min-height: 100vh;
    padding: 24px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #0b2545 url('../../require/img/entrance.JPG') center/cover no-repeat fixed;
} */

body {
    margin: 0;
    min-height: 100vh;
    padding: 24px;
    color: var(--ink);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    background: #0b2545 url('../../New/require/img/entrance.JPG') center/cover no-repeat fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(140deg, rgba(0, 26, 58, .92) 0%, rgba(0, 61, 130, .82) 100%);
    backdrop-filter: blur(2px);
    z-index: 0;
}

.auth {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 15, 40, .45);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth {
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 80px rgba(0, 15, 40, .45);
}

.auth-brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #002a5c 0%, #003d82 50%, #0a5aa8 100%);
    color: #fff;
    padding: 40px 42px;
    display: flex;
    flex-direction: column;
}

.auth-brand::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -130px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .15) 0%, transparent 64%);
}

.ab-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ab-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 34px;
}

.ab-logo img {
    height: 34px;
}

.ab-mid h1 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.025em;
    margin-bottom: 14px;
}

.ab-mid h1 span {
    color: #8fc4ff;
}

.ab-mid p {
    color: rgba(255, 255, 255, .75);
    font-size: .92rem;
    line-height: 1.6;
    margin-bottom: 26px;
}

.ab-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.ab-points li {
    display: flex;
    gap: 11px;
    align-items: center;
    font-size: .87rem;
    color: rgba(255, 255, 255, .88);
}

.ab-points i {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .14);
    display: grid;
    place-items: center;
    font-size: .74rem;
    flex-shrink: 0;
    color: #8fc4ff;
}

.ab-foot {
    margin-top: auto;
    padding-top: 30px;
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
}

.ab-foot a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
}

.auth-form {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.af-head {
    margin-bottom: 22px;
}

.af-head h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 4px;
}

.af-head p {
    color: var(--muted);
    font-size: .89rem;
    margin: 0;
}

.alert {
    border: 0;
    border-radius: 11px;
    font-size: .85rem;
    padding: 11px 14px;
    margin-bottom: 16px;
}

.alert-danger {
    background: #fdeceb;
    color: #9b2c22;
}

.alert-success {
    background: #e8f6ee;
    color: #14653a;
}

.fld {
    margin-bottom: 15px;
}

.fld label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #46536b;
    margin-bottom: 6px;
}

.fld-box {
    position: relative;
}

.lead-ic {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa7bb;
    font-size: .95rem;
    pointer-events: none;
}

.form-control {
    height: 48px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #f9fbfd;
    padding-left: 43px;
    font-size: .93rem;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.form-control:focus {
    background: #fff;
    border-color: var(--ku);
    box-shadow: 0 0 0 4px rgba(0, 61, 130, .1);
}

.form-control::placeholder {
    color: #a9b4c4;
}

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8895a9;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.pw-toggle:hover {
    background: #eef2f8;
    color: var(--ku);
}

.fld-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: .84rem;
}

.fld-row a {
    color: var(--ku);
    font-weight: 600;
    text-decoration: none;
}

.fld-row a:hover {
    text-decoration: underline;
}

.form-check-label {
    font-size: .84rem;
    color: var(--muted);
}

.btn-theme {
    background: var(--ku);
    color: #fff;
    border: 0;
    border-radius: 11px;
    height: 48px;
    font-weight: 600;
    font-size: .95rem;
    transition: background .15s ease;
}

.btn-theme:hover {
    background: var(--ku-dark);
    color: #fff;
}

.af-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: #a9b4c4;
    font-size: .78rem;
}

.af-divider::before,
.af-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.af-alt {
    text-align: center;
    font-size: .88rem;
    color: var(--muted);
}

.af-alt a {
    color: var(--ku);
    font-weight: 600;
    text-decoration: none;
}

.af-alt a:hover {
    text-decoration: underline;
}

.af-back {
    margin-top: 20px;
    text-align: center;
}

.af-back a {
    color: #8895a9;
    font-size: .82rem;
    text-decoration: none;
}

.af-back a:hover {
    color: var(--ku);
}

.caps-warn {
    display: none;
    margin-top: 6px;
    font-size: .77rem;
    color: #a8720b;
}

.caps-warn.on {
    display: block;
}

@media (max-width: 900px) {
    body {
        padding: 0;
        display: block;
    }

    .auth {
        grid-template-columns: 1fr;
        max-width: none;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-brand {
        padding: 26px 26px 30px;
    }

    .ab-logo {
        margin-bottom: 20px;
    }

    .ab-mid h1 {
        font-size: 1.4rem;
        margin-bottom: 0;
    }

    .ab-mid p,
    .ab-points,
    .ab-foot {
        display: none;
    }

    .auth-form {
        padding: 28px 24px 36px;
    }
}