/* 註冊頁面樣式 */
.register-container {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  padding: 40px 20px;
  margin-top: 20px;
}

.register-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  border: 1px solid #e0e0e0;
}

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

.register-card h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 20px;
  font-weight: 500;
}

.register-card h3 {
  margin-bottom: 15px;
  color: #555;
  font-size: 18px;
  font-weight: 500;
}

/* 註冊方式選擇 */
.register-type-selection {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.register-type-btn {
  flex: 1;
  padding: 15px;
  text-align: center;
  border: 2px solid #e0e0e0;
  background: white;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.register-type-btn:hover {
  border-color: #007bff;
  color: #007bff;
}

.register-type-btn.active {
  border-color: #007bff;
  background: #007bff;
  color: white;
}

.register-type-btn i {
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

/* 註冊表單容器 */
.register-form {
  margin-bottom: 20px;
}

/* 步驟指示器 */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #007bff;
  color: white;
}

.step-text {
  font-size: 12px;
  color: #666;
  text-align: center;
}

.step.active .step-text {
  color: #007bff;
  font-weight: 600;
}

/* 表單樣式 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #007bff;
}

.help-text {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

/* 按鈕樣式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #0056b3;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-link {
  background: none;
  color: #007bff;
  text-decoration: underline;
  width: auto;
  padding: 8px 0;
}

.btn-link:disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* 表單動作按鈕 */
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-actions .btn-primary {
  flex: 1;
}

.form-actions .btn-link {
  flex: none;
  white-space: nowrap;
}

/* 驗證文字 */
.verify-text {
  text-align: center;
  margin-bottom: 20px;
  color: #666;
}

/* 第三方登入區塊 */
.oauth-section {
  margin-top: 30px;
}

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #666;
  font-size: 14px;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-google {
  background: #db4437;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google:hover {
  background: #c23321;
}

.btn-facebook {
  background: #3b5998;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-facebook:hover {
  background: #2d4373;
}

.btn-line {
  background: #00b900;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-line:hover {
  background: #009900;
}

/* 圖示 */
.icon-google::before { content: "G"; }
.icon-facebook::before { content: "f"; }
.icon-line::before { content: "L"; }

/* 登入連結 */
.login-link {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.login-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* 警告訊息 */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error {
  background: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.alert-success {
  background: #e7f5ff;
  color: #007bff;
  border: 1px solid #b3d7ff;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .register-container {
    padding: 10px;
  }
  
  .register-card {
    padding: 30px 20px;
  }
  
  .step-indicator {
    margin-bottom: 30px;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .step-text {
    font-size: 11px;
  }
  
  .oauth-buttons {
    gap: 10px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .form-actions .btn-link {
    order: -1;
  }
}

/* 載入動畫 */
.loading {
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 2px solid #ccc;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
