/* ====================================================
   🔐 登錄頁專用樣式
   ==================================================== */
.login-container {
  padding: 30px 20px 40px;
  max-width: 400px;
  margin: 0 auto;
}
.login-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 每個輸入項包裝（供 login.min.js 的 parent().parent() 操作） */
.login-field {
  position: relative;
}
.login-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;
}
.login-input-wrap:focus-within {
  border-color: #3097fd;
  background: #fff;
}
.login-input-wrap .login-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #aaa;
}
.login-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  outline: none;
  height: 100%;
  min-width: 0;
}
.login-input-wrap input::placeholder {
  color: #bbb;
}

/* focus / error 狀態（login.min.js 加到 .login-field 上） */
.login-field.focus .login-input-wrap {
  border-color: #3097fd;
  background: #fff;
}
.login-field.error .login-input-wrap {
  border-color: #f44;
}

/* 驗證碼行 */
.login-captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-captcha-row .login-input-wrap {
  flex: 1;
  min-width: 0;
}
.login-captcha-img {
  flex-shrink: 0;
  width: 90px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  background: #f0f0f0;
  object-fit: contain;
}
.login-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;
}
.login-captcha-refresh svg {
  width: 18px;
  height: 18px;
}

/* 錯誤訊息（包在 .login-error-wrap 裡，供 parent().hide() 使用） */
.login-error-wrap {
  display: none;
}
.sError {
  color: #f44;
  font-size: 13px;
  text-align: center;
  display: block;
  padding: 4px 0;
}

/* 登錄按鈕 */
.login-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-top: 4px;
}
.login-btn:active {
  background: #1a7de0;
}

/* 底部連結 */
.login-links {
  display: flex;
  justify-content: space-between;
  padding-top: 4px;
}
.login-links a {
  font-size: 14px;
  color: #3097fd;
  text-decoration: none;
}
.login-links a:active {
  color: #1a7de0;
}

/* ====================================================
   💻 平板 (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;
  }

  .login-container {
    padding: 60px 20px 80px;
    max-width: 420px;
  }
  .login-title {
    font-size: 26px;
    margin-bottom: 36px;
  }
  .login-input-wrap {
    height: 52px;
    border-radius: 12px;
    padding: 0 16px;
  }
  .login-input-wrap input {
    font-size: 16px;
  }
  .login-captcha-img {
    width: 110px;
    height: 46px;
  }
  .login-captcha-refresh {
    width: 36px;
    height: 36px;
  }
  .login-btn {
    height: 52px;
    line-height: 52px;
    font-size: 17px;
    border-radius: 12px;
  }
  .login-links a {
    font-size: 15px;
  }
  .login-input-wrap:hover {
    border-color: #c0d4ea;
  }
  .login-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; }
}
