body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #f5f9ff, #e6f2ff);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
  background: #3aa3d1;
  background-color: #3aa3d1;
  padding: 2rem;
  border-radius: 12px;
  width: 350px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  align-items: stretch;
  text-align: center;
}

.login-left,
.login-right {
  flex: 1;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === 左側：快速登入 === */
.login-left {
  background: linear-gradient(135deg, #e3f2fd, #f8fbff);
  border-right: 1px solid #d0e4f7;
  align-items: center;
  text-align: center;
}

.login-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.login-form-area {
  flex: 0.5;
  display: flex;
  align-items: center;
  text-align: center;
  padding-left: 60px;
}

@media (max-width: 768px) {
  .login-image {
    display: none;
  }

  .login-wrapper {
    justify-content: center;
  }
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-header .logo {
  width: 150px;
  /* 原始大約50~80px，可放大 */
  height: auto;
  margin-top: 20px;
  margin-bottom: 0px;
}

.login-header {
    margin-bottom: 10px !important;
}

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

.login-image {
  flex: 1;
  /* 佔一半畫面 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #35c3f2;
  /* 跟你截圖一樣的藍色 */
}

.login-image img {
  max-width: 80%;
  height: auto;
}

.login-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.header .logo {
  width: 200px;
  height: auto;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header h2 {
  color: #0b3b4a;
  margin-bottom: 5px;
}

.login-form-patient {
  display: flex;
  justify-content: center;
  /* 水平置中 */
  align-items: center;
  /* 垂直置中 */
  flex-direction: column;
  /* 子元素上下排列 */
  text-align: center;
  /* 文字置中 */
}

.login-form-patient label {
  font-size: 0.9rem;
  margin-top: 0.8rem;
  display: block;
}

.login-form-patient input {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-form-professor {
  display: flex;
  justify-content: center;
  /* 水平置中 */
  align-items: center;
  /* 垂直置中 */
  flex-direction: column;
  /* 子元素上下排列 */
  text-align: center;
  /* 文字置中 */
}

.login-form-professor label {
  font-size: 0.9rem;
  margin-top: 0.8rem;
  display: block;
}

.login-form-professor input {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.form-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-group label {
  flex: 1;
  text-align: right;
  margin-right: 10px;
  font-weight: 600;
  color: #333;
}

.form-group input {
  flex: 2;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.link-forgot {
  display: block;
  margin-top: 12px;
  color: #0078d7;
  text-decoration: none;
  text-align: center;
  font-size: 13px;
}

.link-forgot:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.8rem;
  background: #3aa3d1;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #2b89b5;
}

.login-options {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-size: 0.85rem;
}

.qr-login {
  text-align: center;
  margin-top: 1rem;
}

.btn-secondary {
  background: #e0e0e0;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

#scanner-container {
  margin-top: 1rem;
  width: 100%;
  position: relative;
  text-align: center;
}

#camera {
  width: 100%;
  max-width: 320px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#snapshot {
  display: none;
  /* 只用來讀取影像，不直接顯示 */
}

.hidden {
  display: none;
}

.divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 12px 0;
  color: #6b6b6b;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #9aa0a6;
  border-radius: 999px;
}

.divider::before {
  margin-right: 16px;
}

.divider::after {
  margin-left: 16px;
}