/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f4f8 50%, #ddeef5 100%);
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    color: #000000;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #000000;
    font-size: 0.9rem;
}

.login-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.login-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
    color: #000000;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.login-tab.active {
    color: #000000;
    border-bottom-color: #1976D2;
    font-weight: 700;
}

.login-tab:hover {
    color: #1976D2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #000000;
    background: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #666666;
    opacity: 1;
}

.form-group input:focus {
    outline: none;
    border-color: #1976D2;
}

.form-actions {
    margin-top: 2rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, #1976D2, #64B5F6);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.6);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.message.show {
    display: block;
}

.message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: #000000;
    font-size: 0.9rem;
}

.form-footer a {
    color: #1976D2;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* 忘记密码模态框样式 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    color: #1976D2;
    font-size: 1.5rem;
}

.modal-content .form-group label {
    color: #333;
}

.modal-content .modal-hint {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 0 0;
    line-height: 1.45;
}

.modal-content .modal-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fff;
    color: #111;
}

.modal-content .modal-input:focus {
    outline: none;
    border-color: #1976D2;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1.5rem;
}

/* 覆盖 .btn-primary { width:100% }，避免取消被挤成竖排字 */
.modal-buttons .btn-primary,
.modal-buttons .btn-secondary {
    width: auto;
    flex: 0 0 auto;
    min-width: 5.5rem;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
}

.modal-buttons .btn-primary {
    flex: 1 1 auto;
    max-width: none;
}

.btn-secondary {
    padding: 0.65rem 1.25rem;
    border: 1px solid #c5c5c5;
    background: #fff;
    color: #333;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #f0f0f0;
    border-color: #999;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
