html, body {
    height: 100%;
}

.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(37, 99, 235, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(124, 58, 237, 0.12) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.login-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 48px 44px 40px;
    width: 400px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
}

/* ─── Logo ─── */
.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.logo-icon-wrap {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.38);
}

.logo-icon-wrap svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-logo .logo-text {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.login-logo .logo-text em {
    color: #2563eb;
    font-style: normal;
}

.login-logo .logo-sub {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 7px;
    letter-spacing: 0.02em;
}

/* ─── Form ─── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

.input-wrap {
    position: relative;
}

.input-wrap .input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: #94a3b8;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    background: #f8fafc;
    font-family: inherit;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.form-control.error {
    border-color: #ef4444;
    background: #fff;
}

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

.error-tip {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    padding-left: 2px;
}

/* ─── Footer row ─── */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #2563eb;
    border-radius: 4px;
}

.form-check span {
    color: #64748b;
    font-size: 13px;
}

.forgot-link {
    font-size: 13px;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.15s;
}

.forgot-link:hover {
    color: #1d4ed8;
}

/* ─── Submit button ─── */
.btn-login {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: opacity 0.18s, box-shadow 0.18s, transform 0.1s;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.btn-login:hover {
    opacity: 0.92;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-login:active {
    transform: translateY(1px);
    box-shadow: 0 1px 6px rgba(37, 99, 235, 0.3);
}

/* ─── Hint ─── */
.login-hint {
    text-align: center;
    margin-top: 22px;
    font-size: 12px;
    color: #94a3b8;
    padding: 10px 0 0;
    border-top: 1px solid #f1f5f9;
}
