/* register.css - 整合所有CSS样式 */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f5f5f5;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    height: 60px;
    margin-bottom: 1rem;
}

.auth-header h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #4dabf7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
}

.form-group.error input {
    border-color: #ff6b6b;
    background-color: #fff5f5;
}

.error-text {
    display: block;
    margin-top: 6px;
    color: #ff6b6b;
    font-size: 13px;
}

.alert {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
}

.alert-error {
    background: #fff5f5;
    color: #ff6b6b;
    border-left: 3px solid #ff6b6b;
}

.alert-success {
    background: #e8f5e9;
    color: #388e3c;
    border-left: 3px solid #388e3c;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #4dabf7;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #339af0;
}

.submit-btn:active {
    transform: translateY(1px);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    opacity: 0;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .loading-spinner {
    opacity: 1;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #868e96;
    font-size: 14px;
}

.auth-footer a {
    color: #4dabf7;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}
/* 新增图标样式 */
.alert .icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}
