* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
}

body {
    min-height: 100vh;
    background:
            radial-gradient(circle at 10% 20%, rgba(34, 59, 94, 0.95), transparent 50%),
            radial-gradient(circle at 90% 10%, rgba(28, 52, 86, 0.9), transparent 55%),
            linear-gradient(135deg, #0b1628 0%, #14253d 45%, #102035 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    filter: blur(80px);
}

.bg-circle-1 {
    width: 420px;
    height: 420px;
    top: -180px;
    left: -120px;
}

.bg-circle-2 {
    width: 360px;
    height: 360px;
    bottom: -160px;
    right: -100px;
}

.login-box {
    width: 460px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    box-shadow:
            0 18px 55px rgba(0, 0, 0, 0.45),
            0 0 0 1px rgba(255, 255, 255, 0.35) inset;
    backdrop-filter: blur(22px);
    overflow: hidden;
    z-index: 1;
}

.login-header {
    background:
            linear-gradient(135deg, rgba(28, 60, 100, 0.95), rgba(35, 75, 120, 0.95)),
            url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #fff;
    text-align: center;
    padding: 42px 24px 34px;
}

.login-header .logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-header p {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.login-body {
    padding: 38px 34px 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d8dfeb;
    border-radius: 10px;
    font-size: 15px;
    color: #1e2933;
    background: #fcfdfd;
    transition: 0.22s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1c3b64;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(28, 59, 100, 0.12);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 4px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #505d6b;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: #1c3b64;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1c3b64, #254b82);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.22s ease;
    box-shadow: 0 8px 18px rgba(28, 59, 100, 0.35);
}

.btn-login:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #254b82, #2d5aa0);
    box-shadow: 0 12px 24px rgba(28, 59, 100, 0.45);
}

.btn-login:active {
    transform: translateY(0);
}

.error-box {
    background: #fff5f5;
    border: 1px solid #f2c2c2;
    color: #d83030;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    display: none;
    position:relative;
}
.error-close{
    position:absolute;
    right:10px;
    top:10px;
    cursor:pointer;
    font-size:16px;
    color:#c86c6c;
}

.field-error {
    font-size:12px;
    color:#dc3545;
    margin-top:4px;
    padding-left:4px;
    display:none;
}

.footer-text {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #7f8fa6;
}

@media (max-width: 520px) {
    .login-box {
        width: 92%;
        margin: 20px;
    }
    .login-body {
        padding: 30px 24px 24px;
    }
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
