* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f1f5f9;
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 导航栏 */
.navbar {
    background: white !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
    height: 60px;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6 !important;
    text-decoration: none;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #3b82f6;
}

.btn-login-nav {
    background: #3b82f6;
    color: white !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-login-nav:hover {
    background: #2563eb;
}

/* 主容器 */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.register-container {
    width: 100%;
    max-width: 420px;
}

.register-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #eee;
}

.register-header {
    text-align: center;
    margin-bottom: 32px;
}

.register-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
}

.register-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.register-header p {
    color: #666;
    font-size: 0.9rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-register:hover:not(:disabled) {
    background: #2563eb;
}

.btn-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.register-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.register-footer p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.register-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #3b82f6;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    text-align: center;
    padding: 24px;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

.form-input.with-icon {
    padding-left: 48px;
}

.form-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 6px;
}

.btn-success {
    display: inline-block;
    padding: 12px 32px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 16px;
}

.btn-success:hover {
    background: #2563eb;
}

@media (max-width: 480px) {
    .register-card {
        padding: 32px 24px;
    }
}
