.auth-main {
    min-height: calc(100vh - 200px);
    padding: 140px 20px;
    background-color: #f5f7fa;
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
}

.auth-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
}

.register-box {
    max-width: 1000px;
}

.auth-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 20px;
    background-color: #fafbfc;
}

.section-subtitle {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #306AF6;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #306AF6;
    box-shadow: 0 0 0 3px rgba(48, 106, 246, 0.1);
}

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

.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn input {
    flex: 1;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    white-space: nowrap;
}

.btn-disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    color: #fff !important;
    cursor: not-allowed !important;
}

.form-actions {
    margin-top: 10px;
}

.btn-block {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.auth-links {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

.auth-links a {
    color: #306AF6;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ==================== 移动端响应式样式 ==================== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .auth-main {
        padding: 120px 20px;
    }
    
    .register-box {
        max-width: 90%;
    }
    
    .form-section {
        padding: 15px;
    }
}

/* 手机设备 (小于 768px) */
@media screen and (max-width: 768px) {
    .auth-main {
        padding: 100px 15px 40px;
        min-height: calc(100vh - 150px);
    }
    
    .auth-box {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .register-box {
        max-width: 100%;
    }
    
    .auth-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .auth-form {
        gap: 15px;
    }
    
    .form-section {
        padding: 15px;
        border-radius: 8px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 15px;
        padding-left: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .form-group {
        gap: 6px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .input-with-btn {
        flex-direction: column;
        gap: 8px;
    }
    
    .input-with-btn input {
        width: 100%;
    }
    
    .btn-sm {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }
    
    .btn-block {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .form-actions {
        margin-top: 5px;
    }
    
    .auth-links {
        font-size: 13px;
        margin-top: 15px;
    }
}

/* 小屏手机 (小于 480px) */
@media screen and (max-width: 480px) {
    .auth-main {
        padding: 90px 12px 30px;
    }
    
    .auth-box {
        padding: 20px 16px;
        border-radius: 10px;
    }
    
    .auth-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .section-subtitle {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .form-section {
        padding: 12px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }
    
    /* 防止输入框在iOS上缩放 */
    .form-group input:focus,
    .form-group select:focus {
        font-size: 16px;
    }
}
