/* ====================================================
   📝 註冊頁專用樣式
   ==================================================== */
.register-container {
  padding: 30px 20px 40px;
  max-width: 400px;
  margin: 0 auto;
}
.register-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}
.register-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.register-field {
  position: relative;
}
.register-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f7fa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 0 14px;
  height: 48px;
  transition: border-color 0.2s;
}
.register-input-wrap:focus-within {
  border-color: #3097fd;
  background: #fff;
}
.register-input-wrap .register-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #aaa;
}
.register-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  outline: none;
  height: 100%;
  min-width: 0;
}
.register-input-wrap input::placeholder {
  color: #bbb;
}
.register-field.focus .register-input-wrap {
  border-color: #3097fd;
  background: #fff;
}
.register-field.error .register-input-wrap {
  border-color: #f44;
}
.register-captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.register-captcha-row .register-input-wrap {
  flex: 1;
  min-width: 0;
}
#captchaImg {
  flex-shrink: 0;
  width: 90px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  background: #f0f0f0;
  object-fit: contain;
  display: block;
}
.register-captcha-refresh {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #3097fd;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.register-captcha-refresh svg {
  width: 18px;
  height: 18px;
}
#changeBtnId.hover svg {
  animation: spinOnce 0.4s linear;
}
@keyframes spinOnce {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.sError {
  color: #f44;
  font-size: 13px;
  text-align: center;
  display: block;
  padding: 4px 0;
}
.register-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.register-btn {
  flex: 1;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: #3097fd;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  display: block;
}
.register-btn:active { background: #1a7de0; }
.register-btn-ghost {
  flex: 1;
  height: 48px;
  line-height: 46px;
  text-align: center;
  background: transparent;
  color: #888;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  display: block;
}
.register-btn-ghost:active { background: #f5f5f5; color: #666; }
.register-links {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}
.register-links a {
  font-size: 14px;
  color: #3097fd;
  text-decoration: none;
}
.register-links a:active { color: #1a7de0; }

/* ====================================================
   ✅ 註冊成功區塊
   ==================================================== */
.regok-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}
.regok-icon {
  width: 72px;
  height: 72px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.regok-icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}
.regok-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}
.regok-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
}
.regok-code-card {
  width: 100%;
  background: #f5f7fa;
  border: 2px dashed #3097fd;
  border-radius: 12px;
  padding: 20px 16px;
  margin-bottom: 32px;
  box-sizing: border-box;
}
.regok-code-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}
.regok-code-value {
  font-size: 32px;
  font-weight: 700;
  color: #3097fd;
  letter-spacing: 2px;
  word-break: break-all;
}
.regok-code-tip {
  font-size: 12px;
  color: #f44;
  margin-top: 10px;
}
.regok-btn {
  display: block;
  width: 100%;
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: #3097fd;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 16px;
}
.regok-btn:active { background: #1a7de0; }
.regok-home {
  font-size: 14px;
  color: #999;
  text-decoration: none;
}
.regok-home:active { color: #666; }

/* ====================================================
   💻 平板 (768px+)
   ==================================================== */
@media screen and (min-width: 768px) {
  html { font-size: 16px !important; }
  body { background: #eef0f4 !important; }
  .wrapper {
    max-width: 960px !important;
    margin: 0 auto !important;
    background: #fff !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    min-height: 100vh;
    overflow-x: hidden !important;
  }
  .register-container {
    padding: 60px 20px 80px;
    max-width: 420px;
  }
  .register-title { font-size: 26px; margin-bottom: 36px; }
  .register-input-wrap { height: 52px; border-radius: 12px; padding: 0 16px; }
  .register-input-wrap input { font-size: 16px; }
  #captchaImg { width: 110px; height: 46px; }
  .register-captcha-refresh { width: 36px; height: 36px; }
  .register-btn { height: 52px; line-height: 52px; font-size: 17px; border-radius: 12px; }
  .register-btn-ghost { height: 52px; line-height: 50px; font-size: 16px; border-radius: 12px; }
  .register-links a { font-size: 15px; }
  .register-input-wrap:hover { border-color: #c0d4ea; }
  .register-btn:hover { background: #2488ee; }
  .register-btn-ghost:hover { border-color: #bbb; color: #555; }
  .regok-container { padding: 80px 20px 100px; max-width: 450px; }
  .regok-icon { width: 84px; height: 84px; margin-bottom: 28px; }
  .regok-icon svg { width: 46px; height: 46px; }
  .regok-title { font-size: 28px; }
  .regok-subtitle { font-size: 15px; }
  .regok-code-card { padding: 24px 20px; }
  .regok-code-value { font-size: 36px; }
  .regok-btn:hover { background: #2488ee; }
}
@media screen and (min-width: 1024px) { .wrapper { max-width: 1200px !important; } }
@media screen and (min-width: 1440px) { .wrapper { max-width: 1400px !important; } }
