/* ========================================
   認證頁面樣式 - 簡約透明版
   ======================================== */

.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-box {
  background: transparent;
  padding: 40px 0;
  width: 100%;
  max-width: 420px;
}

/* 標題區域 */
.auth-box h1 {
  font-size: 32px;
  font-weight: 300;
  color: #333333;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 14px;
  color: #666666;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 300;
}

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

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #333333;
  margin-bottom: 8px;
  font-weight: 400;
}

.form-group label .required {
  color: #e74c3c;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #333333;
  background-color: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #333333;
}

.form-control::placeholder {
  color: #bdc3c7;
  font-weight: 300;
}

/* 手機號碼輸入組 */
.phone-input-group {
  display: flex;
  gap: 10px;
}

.country-code-select {
  flex-shrink: 0;
  width: 110px;
  padding: 12px 10px;
  font-size: 14px;
  color: #333333;
  background-color: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.country-code-select:focus {
  outline: none;
  border-color: #333333;
}

.phone-number-input {
  flex: 1;
}

/* 表單提示文字 */
.form-text {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #999999;
  font-weight: 300;
}

/* Checkbox 樣式 */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #333333;
}

.form-check label {
  flex: 1;
  font-size: 14px;
  color: #666666;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
  font-weight: 300;
  line-height: 1.6;
}

.form-check label a {
  color: #333333;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.form-check label a:hover {
  opacity: 0.7;
}

/* 表單行(忘記密碼連結) */
.form-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.forgot-link {
  font-size: 13px;
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 300;
}

.forgot-link:hover {
  color: #333333;
}

/* 按鈕樣式 */
.btn {
  display: inline-block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #333333;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1a1a1a;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-block {
  width: 100%;
  display: block;
}

/* 頁腳區域 */
.auth-footer {
  text-align: center;
  padding-top: 30px;
}

.auth-footer p {
  font-size: 14px;
  color: #666666;
  margin: 0;
  font-weight: 300;
}

.auth-footer a {
  color: #333333;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.auth-footer a:hover {
  opacity: 0.7;
}

/* 錯誤狀態 */
.form-control.error,
.country-code-select.error {
  border-color: #e74c3c;
}

.form-control.error:focus,
.country-code-select.error:focus {
  border-color: #e74c3c;
}

/* 響應式設計 */
@media (max-width: 576px) {
  .auth-container {
    padding: 30px 20px;
  }

  .auth-box {
    padding: 30px 0;
    max-width: 100%;
  }

  .auth-box h1 {
    font-size: 28px;
    margin-bottom: 35px;
  }

  .auth-subtitle {
    font-size: 13px;
    margin-bottom: 35px;
  }

  .form-control,
  .country-code-select {
    padding: 11px 14px;
    font-size: 14px;
  }

  .country-code-select {
    width: 100px;
    padding-right: 28px;
    font-size: 13px;
  }

  .phone-input-group {
    gap: 8px;
  }

  .btn {
    padding: 13px 20px;
    font-size: 14px;
  }

  .form-text {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .auth-subtitle br {
    display: none;
  }

  .country-code-select {
    width: 90px;
    font-size: 12px;
  }
}

/* 載入動畫 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.auth-box {
  animation: fadeIn 0.6s ease;
}

/* 修正 Safari 的 select 樣式 */
@supports (-webkit-appearance: none) {
  .country-code-select {
    -webkit-appearance: none;
  }
}
