:root {
    --ink:        #2c2e35;
    --ink-light:  #4a4d58;
    --page:       #f5f3ef;
    --card:       #ffffff;
    --mist2:      #edeae4;
    --line:       #dad6cf;
    --accent:     #3a5a8c;
    --accent-dim: #e8eef6;
    --accent-mid: #4a6fa0;
    --mid:        #6b6d76;
    --soft:       #8e9099;
    --faint:      #b0b3bc;
    --r:          6px;
    --r-xl:       14px;
}

body #content-body {
    margin-top: 0 !important;
    padding: 0 !important;
}

.login-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

.login-wrap {
    width: 380px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
    animation: loginRise .25s ease both;
}

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

.login-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.login-gem {
    width: 48px;
    height: 40px;
    background: rgba(66,103,212,.28);
    border: 1px solid rgba(107,142,245,.45);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #3a5a8c;
    flex-shrink: 0;
}

.login-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
}

.login-sub {
    font-size: 12px;
    color: var(--soft);
    margin-top: 2px;
}

.login-field {
    margin-bottom: 14px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 10px 13px;
    font-size: 13px;
    font-family: 'BIZ UDPGothic', sans-serif;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}


.login-field input::placeholder {
    color: var(--faint);
    font-weight: 300;
}

.login-error {
    font-size: 11.5px;
    color: #b03a2e;
    margin-top: 4px;
    display: block;
}

.login-btn {
    width: 100%;
    padding: 11px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-family: 'BIZ UDPGothic', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .13s;
    margin-top: 6px;
    letter-spacing: .02em;
}

.login-btn:hover {
    background: var(--accent-mid);
}

.login-btn:active {
    background: #2f4870;
}

.login-footer {
    text-align: center;
    font-size: 14.5px;
    color: var(--faint);
    margin-top: 20px;
}

.login-alert {
    background: #fdf0ee;
    border: 1px solid #f5c0b8;
    border-left: 3px solid #b03a2e;
    border-radius: var(--r);
    padding: 10px 13px;
    font-size: 12.5px;
    color: #b03a2e;
    margin-bottom: 16px;
}

.login-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
}

.login-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #8e9099;
    background: #fff;
    position: relative;
    transition: background .13s, border-color .13s;
}

.login-checkbox input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.login-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.login-checkbox label {
    font-size: 12px;
    color: var(--mid);
    cursor: pointer;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

@media (max-width: 575.98px) {
    .login-outer {
        min-height: 100dvh;
        padding: 16px;
        align-items: stretch;
    }

    .login-wrap {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        padding: 28px 18px 22px;
        margin: auto 0;
    }

    .login-logo {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 22px;
    }

    .login-gem {
        width: 44px;
        height: 38px;
        font-size: 20px;
    }

    .login-title {
        font-size: 16px;
    }

    .login-sub {
        font-size: 11px;
        line-height: 1.5;
    }

    .login-field {
        margin-bottom: 12px;
    }

    .login-field label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .login-field input {
        padding: 11px 12px;
        font-size: 16px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
        margin-top: 8px;
    }

    .login-footer {
        margin-top: 18px;
        font-size: 12px;
        line-height: 1.5;
    }
}
