*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #1a2a4a 0%, #1565c0 60%, #1e88e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

/* 装饰圆 */
body::before {
    content: '';
    position: fixed;
    width: 420px;
    height: 420px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 16px;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 6px 20px rgba(0,0,0,0.15);
    overflow: hidden;
}

/* 头部色块 */
.login-header {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    padding: 36px 32px 28px;
    text-align: center;
    color: #fff;
}

.login-logo {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    border: 2px solid rgba(255,255,255,0.4);
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 13px;
    opacity: 0.75;
    letter-spacing: 0.2px;
}

/* 表单区 */
.login-body {
    padding: 32px;
}

.login-error {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    color: #c62828;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-error::before {
    content: '⚠';
    font-size: 14px;
    flex-shrink: 0;
}

.login-field {
    margin-bottom: 20px;
}

.login-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #546e7a;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.login-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #263238;
    background: #f5f7fa;
    border: 1.5px solid #e0e6ef;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-input:focus {
    border-color: #1e88e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,136,229,0.12);
}

.login-input::placeholder {
    color: #b0bec5;
}

.login-btn {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 8px;
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(30,136,229,0.35);
}

.login-btn:hover {
    opacity: 0.92;
    box-shadow: 0 6px 20px rgba(30,136,229,0.45);
}

.login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(30,136,229,0.3);
}

/* 底部 */
.login-footer {
    text-align: center;
    padding: 14px 32px 20px;
    font-size: 12px;
    color: #b0bec5;
    border-top: 1px solid #f0f4f8;
}
