* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-color: #f5f5f5;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 100%;
    background-image: url('https://m.haozhuma.com/app/img/cb4ebabfc4b5bc4596f89fd4a5fea52d.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    opacity: 0.9;
}

.app-top-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.form-container {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    backdrop-filter: blur(2px);
}

.form-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #007aff;
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007aff;
}

.input-group { margin-bottom: 16px; }
.input-group label { display: block; margin-bottom: 6px; font-size: 14px; color: #555; }
.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: rgba(255, 255, 255, 0.8);
}
.input-group input:focus { border-color: #007aff; outline: none; background-color: white; }

.form-actions { margin-top: 24px; }
.btn { width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color 0.3s; }
.btn.primary { background-color: #007aff; color: white; }
.btn.primary:hover { background-color: #0062cc; }

.agreement-group { margin: 20px 0; display: flex; align-items: center; font-size: 14px; }
.agreement-group input[type='checkbox'] { margin-right: 8px; width: auto; }
.agreement-link { color: #007aff; cursor: pointer; text-decoration: underline; margin-left: 4px; }
.agreement-link:hover { color: #0062cc; }

.agreement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.agreement-modal.show { opacity: 1; visibility: visible; }
.modal-content { background: white; border-radius: 15px; padding: 0; max-width: 500px; width: 90%; max-height: 80vh; box-shadow: 0 20px 40px rgba(0,0,0,.3); transform: scale(.7) translateY(-50px); transition: all .3s ease; overflow: hidden; }
.agreement-modal.show .modal-content { transform: scale(1) translateY(0); }
.modal-header { padding: 20px 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: white; z-index: 1; }
.modal-header h3 { margin: 0; font-size: 18px; color: #333; }
.close-modal { font-size: 24px; cursor: pointer; color: #666; background: none; border: none; padding: 0 10px; }
.modal-body { padding: 20px; line-height: 1.6; color: #333; max-height: 60vh; overflow-y: auto; }
.modal-body p { margin-bottom: 10px; }
.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 10000; }
.toast { padding: 12px 24px; border-radius: 8px; margin-bottom: 10px; color: white; font-size: 14px; font-weight: 500; box-shadow: 0 4px 12px rgba(0,0,0,.15); opacity: 0; transform: translateY(-20px); transition: opacity .3s, transform .3s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background-color: #34C759; }
.toast.error { background-color: #FF3B30; }

@media (min-width: 768px) {
    body::before { width: calc(100% + 60px); }
    .app-top-container { padding: 60px 40px; }
    .form-container { padding: 40px 30px; max-width: 450px; }
}
