*,
*::before,
*::after {
  box-sizing: border-box;
}

.register-container,
input,
button {
  font-family: "MyIansui", serif;
}

/* --- 容器設定 --- */
.register-container {
  max-width: 1000px;
  margin: 20px auto;
  background-color: #e9eaeb;
  padding: 40px 35px; /* 稍微增加上下內距讓版面大器一點 */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- 大標題 --- */
.section-title {
  text-align: center;
  color: #2c3e50;
  margin: 0 0 30px 0; /* 增加下方間距 */
  font-size: 40px;
}

/* --- 表單結構 --- */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

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

/* 說明文字區塊*/
.form-description {
  background-color: #f1f5f9; /* 維持淺藍灰底色 */
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 18px;
  color: #333333;
  line-height: 1.8;
  text-align: justify;
}

/* --- 表單群組 (Label + Input) --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group > label {
  font-size: 18px;
  font-weight: bold;
  color: #34495e;
}

.form-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* --- 輸入框樣式 --- */
input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 18px;
  background-color: #f8fafc;
  line-height: 1.5;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

input:focus {
  outline: none;
  border-color: #5a67d8;
  box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.2);
}

/* --- 送出按鈕 --- */
.btn-register-submit {
  background-color: #2c3e50;
  color: white;
  padding: 18px;
  border-radius: 8px;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

.btn-register-submit:hover {
  background-color: #34495e;
  transform: translateY(-2px);
}

/* 電腦版排版 */
@media (min-width: 768px) {
  .form-group {
    flex-direction: row;
    align-items: flex-start; /* 標題與輸入框頂部對齊 */
  }

  .form-group > label {
    width: 100px;
    text-align: right;
    padding-right: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
    padding-top: 13px;
  }

  .form-content {
    flex: 1;
  }
}
