.register-page {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.register-container {
    width: 100%;
    max-width: 620px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3182ce, #60a5fa, #3182ce);
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 32px;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.05), rgba(59, 130, 246, 0.05));
    border-bottom: 1px solid #e2e8f0;
}

.register-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a365d;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

.register-header h1::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
    color: #3182ce;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.15), rgba(59, 130, 246, 0.15));
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.2);
}

.register-container.is-park .register-header h1::before {
    content: '\f1ad';
}

.register-header p {
    margin: 0;
    opacity: 0.7;
    font-size: 14px;
    color: #64748b;
}

.register-tabs {
    display: flex;
    margin: 20px 32px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.register-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    text-decoration: none;
    transition: all 0.2s ease;
}

.register-tab:hover {
    color: #3182ce;
    background: #eef5fd;
}

.register-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, #3182ce, #2563eb);
}

.register-body {
    padding: 32px;
}

.login-form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-form-group label {
    flex-shrink: 0;
    width: 130px;
    font-weight: 600;
    font-size: 14px;
    color: #2d3748;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.login-form-group label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #3182ce;
    border-radius: 50%;
}

.login-form-group input[type="text"],
.login-form-group input[type="password"],
.login-form-group input[type="email"],
.login-form-group input[type="tel"] {
    flex: 1;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-sizing: border-box;
}

.login-form-group input[type="text"]:focus,
.login-form-group input[type="password"]:focus,
.login-form-group input[type="email"]:focus,
.login-form-group input[type="tel"]:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.1);
    background: #ffffff;
}

.login-form-group input::placeholder {
    color: #a0aec0;
}

.password-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #a0aec0;
    font-size: 16px;
    padding: 4px 8px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #3182ce;
}

/* 园区认证文件上传 */
.cert-upload-area {
    flex: 1;
}

.cert-file-input {
    display: none;
}

.cert-placeholder {
    border: 2px dashed #b6c8dd;
    border-radius: 10px;
    background: #f8fafc;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #64748b;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cert-placeholder:hover {
    border-color: #3182ce;
    background: #eef5fd;
    color: #3182ce;
}

.cert-upload-icon {
    font-size: 32px;
    color: #3182ce;
}

.cert-upload-tip {
    font-size: 12px;
    color: #94a3b8;
}

.cert-preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.cert-preview img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    background: #f1f5f9;
}

.cert-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: background 0.2s;
}

.cert-remove-btn:hover {
    background: rgba(220, 53, 69, 0.85);
}

.captcha-row {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-input {
    flex: 1;
}

.send-code-btn {
    flex-shrink: 0;
    width: 130px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}

.send-code-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #475569;
}

.send-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    color: #94a3b8;
}

.register-buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.forgot-password-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.forgot-password-link {
    font-size: 13px;
    color: #3182ce;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.register-submit-btn {
    flex: 2;
    padding: 14px;
    background: linear-gradient(135deg, #3182ce, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(49, 130, 206, 0.3);
    position: relative;
    overflow: hidden;
}

.register-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.register-submit-btn:hover:not(:disabled) {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(49, 130, 206, 0.4);
}

.register-submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

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

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

@media (max-width: 768px) {
    .register-page {
        padding: 30px 15px;
    }

    .register-container {
        max-width: 100%;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .register-header {
        padding: 20px 24px 16px;
    }

    .register-header h1 {
        font-size: 20px;
        gap: 10px;
    }

    .register-header h1::before {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .register-tabs {
        margin: 16px 24px 0;
    }

    .login-form-group {
        margin-bottom: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .login-form-group label {
        width: 100%;
        font-size: 13px;
    }

    .login-form-group input[type="text"],
    .login-form-group input[type="password"],
    .login-form-group input[type="email"],
    .login-form-group input[type="tel"] {
        width: 100%;
        padding: 12px 14px;
        font-size: 14px;
    }

    .cert-upload-area {
        width: 100%;
    }

    .captcha-row {
        width: 100%;
    }

    .send-code-btn {
        width: 100px;
        padding: 12px;
        font-size: 12px;
    }

    .register-buttons {
        margin-top: 24px;
        gap: 10px;
    }

    .register-submit-btn {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .register-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .register-header h1 {
        justify-content: center;
    }

    .captcha-row {
        flex-direction: column;
    }

    .captcha-input {
        width: 100%;
    }

    .send-code-btn {
        width: 100%;
        padding: 12px;
        font-size: 13px;
    }

    .register-buttons {
        flex-direction: column;
    }

    .register-submit-btn {
        flex: none;
        width: 100%;
    }
}
