

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}


.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 36px 32px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06),
                0 1px 3px rgba(15, 23, 42, 0.04);
    border: 1px solid #eef0f5;
}


.brand {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: -1px;
}

h1 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
}


.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    font-weight: 500;
}

.field input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.field input::placeholder {
    color: #94a3b8;
}

.field input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}


.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
    font-size: 12.5px;
    color: #64748b;
}

.remember {
    display: inline-flex;
    align-items: center;
    
    cursor: pointer;
    user-select: none;
}.remember > * + * { margin-left: 6px; }

.remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #2563eb;
    cursor: pointer;
}

.tip {
    color: #94a3b8;
}


button[type="submit"] {
    width: 100%;
    height: 44px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

button[type="submit"]:hover:not(:disabled) {
    background: #1d4ed8;
}

button[type="submit"]:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}


.alert {
    display: none;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.alert.show {
    display: block;
}

.alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}


.footer {
    text-align: center;
    margin-top: 22px;
    font-size: 12px;
    color: #94a3b8;
}


@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 24px;
        border-radius: 10px;
    }
    .row {
        flex-direction: column;
        align-items: flex-start;
        
    }.row > * + * { margin-top: 6px; }
}
/* Older WebKit spacing for inline layouts. */
.compat-space-1 > * { margin-right: 6px; margin-bottom: 6px; }
.compat-space-2 > * { margin-right: 8px; margin-bottom: 8px; }
.compat-space-3 > * + * { margin-left: 6px; }
.compat-space-4 > * { margin-right: 6px; margin-bottom: 6px; }
.compat-space-5 > * + * { margin-left: 10px; }
.compat-space-6 > * { margin-right: 6px; margin-bottom: 6px; }
.compat-space-7 > * { margin-right: 6px; margin-bottom: 6px; }
.compat-space-8 > * + * { margin-left: 12px; }
.compat-space-9 > * { margin-right: 10px; margin-bottom: 10px; }
.compat-space-10 > * + * { margin-left: 8px; }
.compat-space-11 > * { margin-right: 4px; margin-bottom: 4px; }
.compat-space-12 > * + * { margin-left: 12px; }
.compat-space-13 > * + * { margin-top: 10px; }
.compat-space-14 > * { margin-right: 8px; margin-bottom: 8px; }
