* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    justify-content: center;
}

.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.card-header {
    padding: 25px 30px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.card-header h1 {
    color: #2575fc;
    font-size: 24px;
    margin-bottom: 10px;
}

.card-header p {
    color: #666;
    font-size: 14px;
}

.form-container {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
    outline: none;
}

.form-control.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #fee;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #e8f5e8;
    border: 1px solid #c3e6cb;
    color: #155724;
}

a.btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #2575fc;
    text-decoration: none;
    font-weight: 600;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #2575fc;
    font-size: 22px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #2575fc;
}

.modal-body {
    padding: 25px;
    line-height: 1.6;
    color: #555;
}

.modal-body h3 {
    margin: 20px 0 10px;
    color: #333;
}

.modal-body p {
    margin-bottom: 15px;
}

/* 页脚样式 */
.footer {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 20px;
    z-index: 2;
    position: relative;
    margin-top: auto;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.version {
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .header {
        margin-bottom: 20px;
    }

    .logo {
        font-size: 24px;
    }

    .card {
        max-width: 100%;
        border-radius: 15px;
    }

    .card-header {
        padding: 20px 20px 10px;
    }

    .form-container {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        padding: 12px;
    }

    .btn {
        padding: 12px;
    }

    .footer {
        padding: 15px;
    }

    /* 移动端模态框优化 */
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .card-header h1 {
        font-size: 20px;
    }

    .form-container {
        padding: 15px;
    }

    .form-control {
        padding: 10px;
    }

    .btn {
        padding: 10px;
    }

    .footer {
        padding: 10px;
        font-size: 12px;
    }

    .version {
        font-size: 11px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    justify-content: center;
}

.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.card-header {
    padding: 25px 30px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.card-header h1 {
    color: #2575fc;
    font-size: 24px;
    margin-bottom: 10px;
}

.card-header p {
    color: #666;
    font-size: 14px;
}

.form-container {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
    outline: none;
}

.form-control.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #fee;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #e8f5e8;
    border: 1px solid #c3e6cb;
    color: #155724;
}

a.btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #2575fc;
    text-decoration: none;
    font-size: 14px;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #eee;
}

.divider span {
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.frontend-btn {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    color: #2575fc;
    border: 2px solid #2575fc;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    text-decoration: none;
}

.frontend-btn:hover {
    background-color: #2575fc;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.register-link a {
    color: #2575fc;
    text-decoration: none;
    font-weight: 600;
}

/* 页脚样式 */
.footer {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 20px;
    z-index: 2;
    position: relative;
    margin-top: auto;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.version {
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .header {
        margin-bottom: 20px;
    }

    .logo {
        font-size: 24px;
    }

    .card {
        max-width: 100%;
        border-radius: 15px;
    }

    .card-header {
        padding: 20px 20px 10px;
    }

    .form-container {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        padding: 12px;
    }

    .btn {
        padding: 12px;
    }

    .frontend-btn {
        padding: 12px;
    }

    .footer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .card-header h1 {
        font-size: 20px;
    }

    .form-container {
        padding: 15px;
    }

    .form-control {
        padding: 10px;
    }

    .btn {
        padding: 10px;
    }

    .frontend-btn {
        padding: 10px;
    }

    .footer {
        padding: 10px;
        font-size: 12px;
    }

    .version {
        font-size: 11px;
    }
}