/* หน้า Home (login/register/forgot) — Dark Sky Night Theme */

/* --- CSS Variables (standalone page — no base.css) --- */
:root {
  --bg-page: linear-gradient(180deg, #1a3264 0%, #0c1c3a 22%, #040c1f 50%, #0c1c3a 78%, #1a3264 100%);
  --color-primary: #b1b266;
  --color-primary-alpha-12: rgba(177, 178, 102, 0.12);
  --color-accent: #ec4899;
  --color-accent-dark: #be185d;
  --color-accent-hover: #f472b6;
  --color-accent-shadow: rgba(236, 72, 153, 0.35);
}

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

body {
  background: var(--bg-page) !important;
  background-attachment: fixed !important;
  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;
}

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

.icon-circle img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 8px 24px rgba(177, 178, 102, 0.30));
}

.icon-circle img:hover {
  transform: scale(1.04);
}

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

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

/* ===== TITLE ===== */
.clinic-title h1 {
  font-weight: 700;
  color: #f0ead4;
  margin-bottom: 0.3125rem;
  font-size: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.clinic-title p {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 0.9375rem;
}

/* ===== CONTENT CARD (glassmorphism dark) ===== */
.content-box {
  background: rgba(4, 12, 31, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(177, 178, 102, 0.18);
  border-radius: 1.25rem;
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.60),
    0 1px 0 rgba(177, 178, 102, 0.10) inset;
  padding: 1.25rem;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-box:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.60),
    0 1px 0 rgba(177, 178, 102, 0.15) inset;
}

/* ===== FORM ===== */
.form-label {
  color: var(--color-primary) !important;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.form-control {
  border-radius: 0.75rem;
  border: 1.5px solid rgba(177, 178, 102, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #f0ead4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.85rem;
  padding: 0.45rem 0.875rem;
}

.form-control:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 0 3px rgba(177, 178, 102, 0.18);
  outline: none;
  color: #f0ead4;
}

.form-control::placeholder {
  color: rgba(240, 234, 212, 0.35);
  opacity: 1;
}

/* ===== BUTTONS ===== */
.btn-pink {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%) !important;
  color: #fff !important;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: auto;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  box-shadow: 0 3px 12px var(--color-accent-shadow);
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-accent-shadow) !important;
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%) !important;
  color: #fff !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: var(--color-primary);
  font-weight: 500;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  transition: 0.3s;
  font-size: 0.8rem;
  text-decoration: underline;
  opacity: 0.85;
}

.toggle-btn:hover {
  background: var(--color-primary);
  color: #071525;
  border-radius: 0.375rem;
  padding: 0.125rem 0.5rem;
  opacity: 1;
  text-decoration: none;
}

/* ===== MISC ===== */
/* Default visibility */
#register-form,
#forgot-form,
#show-login,
.forgot-bottom-toggle {
  display: none;
}

.home-social-label {
  font-size: 0.9rem;
  color: rgba(240, 234, 212, 0.65);
}

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

/* ===== PASSWORD TOGGLE ===== */
.password-wrapper { position: relative; }

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(177, 178, 102, 0.6);
  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: var(--color-primary);
}

/* ===== RESPONSIVE ===== */
@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; }
}
