/* 登录注册页面样式 */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2947FF 0%, #5C7AFF 50%, #87CEEB 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    animation: pulse 20s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.auth-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: #999;
}

.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-group .form-control {
    padding-left: 45px;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #999;
}

.auth-footer a {
    color: #667eea;
    font-weight: 500;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 6px;
}

.forgot-password {
    color: #667eea;
}

/* 注册页面专用样式 */
.register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #2947FF 0%, #5C7AFF 50%, #87CEEB 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.register-header {
    padding: 20px 20px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.register-logo {
    width: 80px;
    height: 80px;
    margin: 30px auto 20px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2947FF;
    font-size: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.register-title {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.register-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.register-form-box {
    flex: 1;
    background: #fff;
    border-radius: 30px 30px 0 0;
    padding: 30px 20px;
    margin-top: -20px;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
}

.register-form {
    margin-top: 10px;
}

.register-form .form-group {
    margin-bottom: 20px;
}

.register-form .form-group:last-of-type {
    margin-bottom: 25px;
}

.btn-get-code {
    padding: 12px 20px;
    background: linear-gradient(135deg, #2947FF 0%, #5C7AFF 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-get-code:hover {
    opacity: 0.9;
}

.password-toggle {
    z-index: 10;
}

.agreement-group {
    margin-bottom: 25px;
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.agreement-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #2947FF;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    background: #fff;
    position: relative;
    transition: all 0.3s;
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #2947FF;
    border-color: #2947FF;
}

.agreement-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.agreement-text {
    flex: 1;
}

.agreement-text a {
    color: #2947FF;
    text-decoration: underline;
}

.register-btn {
    width: 100%;
    padding: 16px;
    background: #ccc;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.register-btn:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

.register-btn:not(:disabled):hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.register-footer {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-top: 20px;
}

.register-footer a {
    color: #2947FF;
    text-decoration: none;
    font-weight: 500;
}

.register-security {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.register-security i {
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 480px) {
    .auth-container {
        padding: 15px;
    }
    
    .auth-box {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .form-control {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    .register-header {
        padding: 15px 15px 30px;
    }
    
    .back-link {
        left: 15px;
        top: 15px;
    }
    
    .register-logo {
        width: 70px;
        height: 70px;
        font-size: 36px;
        margin: 20px auto 15px;
    }
    
    .register-title {
        font-size: 24px;
    }
    
    .register-form-box {
        padding: 25px 15px;
    }
    
    .register-security {
        padding: 15px;
    }
}
