/* หน้า Home (login/register/forgot) */

body, h1, h4, p, label, button, small, input, span {
  font-family: 'Prompt', sans-serif !important;
}

body {
  background-color: #fff0f6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
}

.main-container {
  text-align: center;
  width: 100%;
  max-width: 25rem;
  padding: 1.25rem 0.9375rem;
}

.icon-circle {
  position: relative;
  width: 12.5rem;
  margin: 0 auto 1.5rem;
}

.icon-circle img {
  width: 100%;
  height: auto;
  transition: 0.3s ease;
}

@media (min-width: 62em) {
  .icon-circle {
    width: 13.75rem;
  }
}

@media (max-width: 36em) {
  .icon-circle {
    width: 10rem;
  }
}

.clinic-title h1 {
  font-weight: 700;
  color: #e91e63;
  margin-bottom: 0.3125rem;
  font-size: 1.5rem;
}

.clinic-title p {
  font-size: 0.85rem;
  color: #e91e63;
  margin-bottom: 0.9375rem;
}

.content-box {
  background: #fff;
  border-radius: 0.9375rem;
  box-shadow: 0 0 1.5625rem rgba(233, 30, 99, 0.15);
  padding: 1.25rem;
  text-align: left;
  transition: 0.3s ease;
}

.content-box:hover {
  transform: scale(1.01);
  box-shadow: 0 0 1.875rem rgba(233, 30, 99, 0.25);
}

.form-label {
  color: #e91e63 !important;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.form-control {
  border-radius: 0.5rem;
  border: 1px solid #f8cadd;
  transition: 0.3s ease;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}

.form-control:focus {
  border-color: #e91e63;
  box-shadow: 0 0 0.375rem rgba(233, 30, 99, 0.3);
}

.form-control::placeholder {
  opacity: 0.4;
}

.btn-pink {
  background-color: #e91e63 !important;
  color: white !important;
  border: none;
  border-radius: 0.625rem;
  font-weight: 600;
  transition: 0.3s;
  height: auto;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.btn-pink:hover {
  background-color: white !important;
  color: #e91e63 !important;
  border: 1px solid #e91e63 !important;
}

.btn-line {
  background-color: #00B900 !important;
  color: white !important;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: 0.3s;
  width: 100%;
  max-width: 17.5rem;
  font-size: 0.85rem;
}

.btn-line:hover {
  background-color: #00B900 !important;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.75rem rgba(6, 199, 85, 0.3);
}

.btn-line img {
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.5rem;
}

.toggle-btn {
  background: none;
  border: none;
  color: #e91e63;
  font-weight: 500;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  transition: 0.3s;
  font-size: 0.8rem;
  text-decoration: underline;
}

.toggle-btn:hover {
  background: #e91e63;
  color: white;
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
}

/* Default visibility (moved from inline styles in template) */
#register-form,
#forgot-form,
#show-login,
.forgot-bottom-toggle {
  display: none;
}

.home-social-label {
  font-size: 0.9rem;
}

#phone-feedback {
  font-size: 0.75rem;
  transition: 0.3s;
}

@media (max-width: 36em) {
  .main-container {
    padding: 0.9375rem 0.75rem;
  }

  .clinic-title h1 {
    font-size: 1.3rem;
  }

  .clinic-title p {
    font-size: 0.8rem;
  }

  .content-box {
    padding: 0.9375rem 0.75rem;
  }

  #form-title {
    font-size: 1.1rem;
  }
}

@media (min-width: 48.0625em) {
  .content-box {
    padding: 1.25rem 1.5625rem 0.9375rem;
  }
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.3s;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: #333;
}
