body.cf-theme.cf-login-shell {
    background:
        linear-gradient(180deg, rgba(11, 16, 33, 0.18) 0%, rgba(13, 18, 35, 0.42) 24%, rgba(14, 17, 34, 0.82) 52%, rgba(13, 18, 33, 0.98) 100%),
        url("/jpg/header-bg.webp") center top / cover no-repeat,
        linear-gradient(180deg, #1d2450 0%, #17152a 56%, #0d1324 100%);
}

.cf-login-page {
    position: relative;
    min-height: 100vh;
    padding: 7.4rem 0 4rem;
}

.cf-login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.07) 0 1px, transparent 2px),
        radial-gradient(circle at 68% 72%, rgba(255, 255, 255, 0.05) 0 1.2px, transparent 2px);
    opacity: 0.34;
    pointer-events: none;
}

.cf-login-page > .container {
    position: relative;
    z-index: 1;
}

.cf-login-shell-card {
    width: min(100%, 540px);
    margin: 0 auto;
    padding: clamp(1.35rem, 3vw, 2rem);
    border-radius: 1.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(20, 29, 54, 0.9), rgba(10, 15, 28, 0.96));
    box-shadow: 0 32px 70px rgba(4, 8, 20, 0.34);
}

.cf-login-chip {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--cf-theme-accent-soft);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cf-login-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 2.7rem);
    line-height: 1.02;
}

.cf-login-subtitle {
    margin: 0.9rem 0 0;
    color: var(--cf-theme-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.cf-login-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.6rem;
}

.cf-login-alert {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 152, 142, 0.22);
    background: rgba(91, 31, 31, 0.24);
    color: #ffd5cf;
    line-height: 1.55;
}

.cf-login-field {
    display: grid;
    gap: 0.48rem;
}

.cf-login-field label {
    color: rgba(247, 241, 232, 0.86);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cf-login-input {
    width: 100%;
    min-height: 3.5rem;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(14, 20, 37, 0.92), rgba(10, 14, 28, 0.96));
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 14px 28px rgba(4, 8, 20, 0.16);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cf-login-input::placeholder {
    color: rgba(247, 241, 232, 0.42);
}

.cf-login-input:focus {
    outline: none;
    border-color: rgba(244, 157, 67, 0.6);
    box-shadow:
        0 0 0 0.22rem rgba(244, 157, 67, 0.12),
        0 18px 34px rgba(4, 8, 20, 0.24);
    transform: translateY(-1px);
}

.cf-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cf-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--cf-theme-muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.cf-login-remember input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--cf-theme-accent);
}

.cf-login-submit {
    width: 100%;
}

@media (max-width: 767px) {
    .cf-login-page {
        padding-top: 6.7rem;
    }

    .cf-login-shell-card {
        width: min(100%, 100%);
        padding: 1.2rem;
    }
}
