:root {
    --login-blue: #183b8f;
    --login-blue-dark: #0d2869;
    --login-blue-light: #3159b5;
    --login-red: #ed1c24;
    --login-text: #172033;
    --login-muted: #697386;
    --login-border: #dfe5ef;
}

* { box-sizing: border-box; }

.admin-login-body {
    min-width: 320px;
    margin: 0;
    color: var(--login-text);
    background: #edf2fb;
    font-family: "Open Sans", Arial, sans-serif;
}

.admin-login-page {
    position: relative;
    display: flex;
    min-height: 100svh;
    padding: 54px 24px 70px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
        linear-gradient(90deg, rgba(24,59,143,.055) 1px, transparent 1px),
        linear-gradient(rgba(24,59,143,.055) 1px, transparent 1px),
        #edf2fb;
    background-size: auto, 38px 38px, 38px 38px, auto;
}

.admin-login-page::before {
    position: absolute;
    top: -220px;
    left: -190px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: rgba(24,59,143,.11);
    content: "";
}

.admin-login-page::after {
    position: absolute;
    right: -150px;
    bottom: -260px;
    width: 590px;
    height: 590px;
    border: 80px solid rgba(237,28,36,.055);
    border-radius: 50%;
    content: "";
}

.login-shape {
    position: absolute;
    z-index: 0;
    display: block;
    border-radius: 50%;
}

.login-shape-one {
    top: 11%;
    right: 8%;
    width: 15px;
    height: 15px;
    background: var(--login-red);
    box-shadow: 0 0 0 9px rgba(237,28,36,.1);
}

.login-shape-two {
    bottom: 12%;
    left: 8%;
    width: 10px;
    height: 10px;
    background: var(--login-blue);
    box-shadow: 0 0 0 7px rgba(24,59,143,.1);
}

.admin-login-card {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1080px, 100%);
    min-height: 620px;
    grid-template-columns: .94fr 1.06fr;
    overflow: hidden;
    border: 1px solid rgba(24,59,143,.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(18, 39, 90, .18);
}

.admin-login-brand {
    position: relative;
    display: flex;
    padding: 58px 54px 46px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, var(--login-blue-light) 0%, var(--login-blue) 46%, var(--login-blue-dark) 100%);
}

.admin-login-brand::before,
.admin-login-brand::after {
    position: absolute;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    content: "";
}

.admin-login-brand::before {
    top: -170px;
    right: -165px;
    width: 410px;
    height: 410px;
    box-shadow: 0 0 0 44px rgba(255,255,255,.035), 0 0 0 88px rgba(255,255,255,.025);
}

.admin-login-brand::after {
    right: -70px;
    bottom: -150px;
    width: 330px;
    height: 330px;
    background: rgba(255,255,255,.025);
}

.admin-login-brand > * { position: relative; z-index: 1; }

.login-brand-logo {
    display: flex;
    width: 100%;
    min-height: 92px;
    margin-bottom: 68px;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(4,19,57,.18);
}

.login-brand-logo img {
    display: block;
    width: 100%;
    max-width: 350px;
    height: 72px;
    object-fit: contain;
}

.login-brand-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    color: #fff;
    background: rgba(255,255,255,.1);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-login-brand h1 {
    max-width: 390px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(32px, 3vw, 43px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.admin-login-brand p {
    max-width: 405px;
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 15px;
    line-height: 1.75;
}

.login-brand-footer {
    display: flex;
    margin-top: 46px;
    align-items: center;
    gap: 13px;
}

.login-security-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.1);
}

.login-security-icon svg { width: 22px; height: 22px; }
.login-brand-footer strong,
.login-brand-footer span { display: block; }
.login-brand-footer strong { margin-bottom: 2px; color: #fff; font-size: 13px; }
.login-brand-footer div > span { color: rgba(255,255,255,.66); font-size: 12px; }

.admin-login-form-panel {
    display: flex;
    padding: 62px 76px 48px;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

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

.login-heading > span {
    display: block;
    margin-bottom: 10px;
    color: var(--login-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-heading h2 {
    margin: 0 0 9px;
    color: var(--login-text);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -.035em;
}

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

.admin-login-form { margin-top: 38px; }
.login-field { margin-bottom: 23px; }

.login-field label {
    display: inline-block;
    margin-bottom: 9px;
    color: #273247;
    font-size: 13px;
    font-weight: 700;
}

.login-input-wrap {
    position: relative;
    display: flex;
    height: 54px;
    align-items: center;
    border: 1px solid var(--login-border);
    border-radius: 11px;
    background: #f8faff;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.login-input-wrap:focus-within {
    border-color: var(--login-blue-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(49,89,181,.1);
}

.login-input-wrap.has-error {
    border-color: var(--login-red);
    box-shadow: 0 0 0 4px rgba(237,28,36,.07);
}

.login-input-wrap > svg {
    width: 21px;
    height: 21px;
    margin-left: 16px;
    flex: 0 0 21px;
    color: #7d899c;
}

.login-input-wrap input {
    width: 100%;
    height: 52px !important;
    padding: 0 15px;
    border: 0;
    outline: 0;
    color: var(--login-text);
    background: transparent;
    font-size: 14px;
}

.login-input-wrap input::placeholder { color: #a0a9b8; }

.password-toggle {
    display: grid;
    width: 46px;
    height: 52px;
    flex: 0 0 46px;
    padding: 0;
    place-items: center;
    color: #7d899c;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover { color: var(--login-blue); }
.password-toggle svg { width: 21px; height: 21px; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }

.login-error {
    display: block;
    margin-top: 7px;
    color: #cf1520;
    font-size: 12px;
}

.remember-control {
    display: inline-flex;
    margin: 0 0 26px;
    align-items: center;
    gap: 9px;
    color: #596579;
    font-size: 13px;
    cursor: pointer;
}

.remember-control input {
    width: 17px !important;
    height: 17px !important;
    margin: 0;
    accent-color: var(--login-blue);
}

.admin-login-submit {
    display: flex;
    width: 100%;
    height: 54px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--login-blue-light), var(--login-blue));
    box-shadow: 0 13px 25px rgba(24,59,143,.23);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.admin-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(24,59,143,.3);
}

.admin-login-submit:focus-visible,
.password-toggle:focus-visible,
.back-to-website:focus-visible,
.login-brand-logo:focus-visible {
    outline: 3px solid rgba(237,28,36,.35);
    outline-offset: 3px;
}

.admin-login-submit svg { width: 20px; height: 20px; transition: transform .2s ease; }
.admin-login-submit:hover svg { transform: translateX(3px); }

.back-to-website {
    display: inline-flex;
    margin: 30px auto 0;
    align-items: center;
    gap: 7px;
    color: #667185;
    font-size: 12px;
    font-weight: 600;
    transition: color .2s ease;
}

.back-to-website:hover { color: var(--login-blue); }
.back-to-website svg { width: 17px; height: 17px; }

.admin-login-copyright {
    position: absolute;
    z-index: 1;
    right: 20px;
    bottom: 19px;
    left: 20px;
    margin: 0;
    color: #7d8797;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 991px) {
    .admin-login-card { width: min(620px, 100%); grid-template-columns: 1fr; }
    .admin-login-brand { display: none; }
    .admin-login-form-panel { padding: 52px 64px 44px; }
    .login-mobile-brand { display: flex; min-height: 76px; margin-bottom: 40px; padding: 8px 14px; align-items: center; justify-content: center; border: 1px solid #e3e8f1; border-radius: 12px; }
    .login-mobile-brand img { width: 100%; max-width: 360px; height: 60px; object-fit: contain; }
}

@media (max-width: 575px) {
    .admin-login-page { padding: 20px 14px 56px; align-items: flex-start; overflow-y: auto; }
    .admin-login-card { min-height: 0; margin: auto 0; border-radius: 17px; }
    .admin-login-form-panel { padding: 30px 22px 28px; }
    .login-mobile-brand { min-height: 64px; margin-bottom: 30px; }
    .login-mobile-brand img { height: 50px; }
    .login-heading h2 { font-size: 30px; }
    .admin-login-form { margin-top: 30px; }
    .login-field { margin-bottom: 19px; }
    .admin-login-copyright { bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-login-submit,
    .admin-login-submit svg { transition: none; }
}
