* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, #0A5278 0%, #1A6B96 50%, #2A7FB0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 0;
}
/* PC端优先：更宽的卡片，更大的内边距 */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(10, 82, 120, 0.4), 0 10px 20px rgba(0, 40, 60, 0.3);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    width: 100%;
    max-width: 520px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

    .login-card:hover {
        box-shadow: 0 40px 70px rgba(10, 82, 120, 0.5);
    }

.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(10, 82, 120, 0.15);
    padding: 2.5rem 2.8rem 1.5rem 2.8rem;
    text-align: center;
}

    .card-header h2 {
        font-weight: 700;
        color: #0A5278;
        letter-spacing: -0.02em;
        margin-bottom: 0.5rem;
        font-size: 2.2rem;
    }

    .card-header p {
        color: #1A6B96;
        font-size: 1.1rem;
        margin-bottom: 0;
    }

.card-body {
    padding: 1.8rem 2.8rem 2.8rem 2.8rem;
}

.brand-icon {
    font-size: 3.8rem;
    color: #1E7FB0;
    margin-bottom: 0.8rem;
}

/* 全局错误提示 */
.alert-error {
    background-color: #fee9e9;
    border: 1px solid #f5c2c2;
    color: #b14141;
    border-radius: 18px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

    .alert-error i {
        font-size: 1.2rem;
    }

/* 全局成功提示 */
.alert-success {
    background-color: #e1f0e8;
    border: 1px solid #b8d9cc;
    color: #0f6b4a;
    border-radius: 18px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

    .alert-success i {
        font-size: 1.2rem;
        color: #0f6b4a;
    }

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

    .step-indicator::before {
        content: '';
        position: absolute;
        top: 15px;
        left: 0;
        right: 0;
        height: 2px;
        background: #B8D6E8;
        z-index: 1;
    }

.step-item {
    position: relative;
    z-index: 2;
    background: #F0F7FC;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1A6B96;
    border: 2px solid #B8D6E8;
}

    .step-item.active {
        background: #1E7FB0;
        color: white;
        border-color: #1E7FB0;
    }

    .step-item.completed {
        background: #1E7FB0;
        color: white;
        border-color: #1E7FB0;
    }

.step-label {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    color: #1A6B96;
    font-weight: 500;
}

/* 表单控件 */
.form-floating {
    margin-bottom: 1.5rem;
}

    .form-floating > .form-control {
        border-radius: 18px;
        border: 2px solid #B8D6E8;
        padding: 1.2rem 1rem;
        height: auto;
        background: #F5FAFF;
        transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
        font-size: 1rem;
    }

        .form-floating > .form-control:focus {
            border-color: #1E7FB0;
            box-shadow: 0 0 0 5px rgba(30, 127, 176, 0.15);
            background: #ffffff;
        }

        .form-floating > .form-control.is-valid {
            border-color: #1E7FB0;
            background-image: none;
        }

        .form-floating > .form-control.is-invalid {
            border-color: #dc3545;
            background-image: none;
        }

    .form-floating > label {
        padding: 1.2rem 1rem;
        color: #1A6B96;
        font-size: 1rem;
    }

/* 验证反馈 */
.invalid-feedback {
    font-size: 0.9rem;
    margin-top: 0.4rem;
    padding-left: 0.8rem;
    color: #dc3545;
    display: none;
}

.valid-feedback {
    font-size: 0.9rem;
    margin-top: 0.4rem;
    padding-left: 0.8rem;
    color: #1E7FB0;
    display: none;
}

/* 密码规则提示 */
.password-rules {
    background: #F0F7FC;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin: 1rem 0 1.5rem 0;
    border: 1px solid #B8D6E8;
    font-size: 0.9rem;
}

.rules-title {
    font-weight: 600;
    color: #0A5278;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: #1A6B96;
}

    .rule-item i {
        width: 18px;
        font-size: 0.9rem;
    }

    .rule-item.valid i {
        color: #1E7FB0;
    }

    .rule-item.invalid i {
        color: #dc3545;
    }

/* 按钮 */
.btn-login {
    background: linear-gradient(135deg, #0A5278 0%, #1E7FB0 100%);
    border: none;
    border-radius: 18px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
    width: 100%;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(10, 82, 120, 0.3);
    margin-top: 0.5rem;
}

    .btn-login:hover {
        background: linear-gradient(135deg, #064062 0%, #0A5278 100%);
        box-shadow: 0 15px 30px rgba(10, 82, 120, 0.4);
    }

    .btn-login:active {
        background: linear-gradient(135deg, #043050 0%, #064062 100%);
    }

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        background: #9AC0D4;
    }

    .btn-login i {
        margin-right: 0.6rem;
        font-size: 1.1rem;
    }

.btn-outline {
    background: transparent;
    border: 2px solid #1E7FB0;
    border-radius: 18px;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    color: #1E7FB0;
    width: 100%;
    transition: all 0.2s;
    margin-top: 1rem;
}

    .btn-outline:hover {
        background: #E1F0F8;
        border-color: #0A5278;
        color: #0A5278;
    }

/* 底部链接 */
.footer-links {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    font-size: 1rem;
}

    .footer-links a {
        color: #1E7FB0;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            color: #0A5278;
            text-decoration: underline;
        }

/* 底部版权 */
.copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-top: 2rem;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    width: 100%;
}

/* 响应式微调 */
@media (max-width: 576px) {
    body {
        padding: 1rem;
    }

    .card-header, .card-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

        .card-header h2 {
            font-size: 1.8rem;
        }

    .step-label {
        font-size: 0.65rem;
    }
}


.form-floating > .form-control-plaintext ~ label::after, .form-floating > .form-control:focus ~ label::after, .form-floating > .form-control:not(:placeholder-shown) ~ label::after, .form-floating > .form-select ~ label::after {
    background-color: transparent !important;
}