/* =========================================================
   Bayanan Medical Clinic — Create Account Page Styles
   ========================================================= */

:root{
  --brand-dark:      #1F4A30;
  --brand-primary:   #2F7A50;
  --brand-mid:       #448B6C;
  --brand-light-bg:  #EAF7EF;
  --brand-pill-bg:   #C9F1DD;
  --text-muted-green:#7A9A8A;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Nunito Sans', sans-serif;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body{
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-body);
  color:#222;
  margin:0;
}

/* ---------- Navbar (shared) ---------- */
.navbar-logo {
  height: 40px;
  width: auto;
}

@media (min-width: 992px) {
  .navbar-logo {
    height: 52px; 
  }
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.6rem);
  color: #2b2b2b;
  line-height: 1.1;
}

.navbar-brand-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: #8a8a8a;
  display: block;
}

.mobile-nav-menu{
  max-height:0;
  overflow:hidden;
  transition: max-height .25s ease;
  background:#fff;
  border-top:1px solid transparent;
}
.mobile-nav-menu.show{
  max-height:200px;
  border-top:1px solid #eee;
}
.mobile-nav-menu a{
  display:block;
  padding:.75rem 1.5rem;
  color:#333;
  text-decoration:none;
  font-weight:600;
}
.mobile-nav-menu a:hover{ background: var(--brand-light-bg); }

/* ---------- Mobile-only compact title bar (replaces green panel) ---------- */
.mobile-title-bar{
  display:flex;
  align-items:center;
  gap:1rem;
  padding:1.25rem 1.5rem;
  border-bottom:1px solid #eee;
}
.back-arrow{
  width:36px;height:36px;
  border-radius:50%;
  background:#f2f2f2;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#333;
  font-size:1.1rem;
  text-decoration:none;
  flex-shrink:0;
}
.mobile-title-heading{
  font-family: var(--font-display);
  font-size:1.3rem;
  font-weight:700;
  color:#1a1a1a;
}
.mobile-title-sub{
  font-size:.85rem;
  color:#8a8a8a;
}

.verify-modal .modal-content {
  border-radius: 28px;
  box-shadow: 0 26px 60px rgba(14, 38, 24, 0.18);
  background: rgba(255,255,255,0.97);
}

.verify-modal .modal-body {
  background: #f8f8f7;
  border-radius: 28px;
}

.verify-brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3a8b63, #1f4a30);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 18px rgba(47, 122, 80, 0.22);
}

.verify-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 0.7vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: #1d2b25;
}

.verify-message {
  font-size: 1rem;
  color: #4b5a52;
  margin-bottom: 1rem;
}

.verify-email-box {
  display: inline-block;
  background: rgba(47, 122, 80, 0.06);
  border: 1px solid rgba(47, 122, 80, 0.15);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: #2c4d3d;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.verify-helper-text {
  font-size: 0.92rem;
  color: #53655e;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.verify-expire-text {
  font-size: 0.82rem;
  color: #5d6c65;
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.verify-resend-wrap {
  font-size: 0.96rem;
  color: #4b5a52;
}

.verify-resend-link {
  background: none;
  border: none;
  color: #1d2b25;
  text-decoration: underline;
  font-weight: 700;
  padding: 0 0 0 0.2rem;
}

.contact-verification-field {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.contact-verification-field .form-control {
  min-width: 0;
}

.btn-contact-verify {
  flex: 0 0 auto;
  background: var(--brand-primary);
  color: #fff;
  border: 1px solid var(--brand-primary);
  font-weight: 700;
  padding-inline: 1.15rem;
}

.btn-contact-verify:hover,
.btn-contact-verify:focus-visible {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

.btn-contact-verify:disabled {
  opacity: 0.65;
}

.contact-verification-status {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.contact-verification-status.is-verified {
  color: var(--brand-primary);
  font-weight: 700;
}

.contact-verification-status.is-error {
  color: #c0392b;
}

.contact-recaptcha-container {
  display: flex;
  justify-content: flex-start;
  min-height: 78px;
  margin: 0.6rem 0 0.25rem;
}

.contact-captcha-instruction {
  color: #c0392b;
}

.contact-captcha-loading {
  color: #6c757d;
  margin: 0.6rem 0 0.25rem;
}

.contact-captcha-loading.d-none {
  display: none;
}

.contact-otp-input-row {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.contact-otp-input {
  width: 48px;
  max-width: calc((100% - 2.75rem) / 6);
  height: 70px;
  padding: 0;
  border: 2px solid rgba(52, 130, 91, 0.25);
  border-radius: 12px;
  background: #e7f5eb;
  color: #1e3d2c;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.contact-otp-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(47, 122, 80, 0.15);
}

.contact-verification-error {
  min-height: 1.25rem;
  margin-bottom: 0.9rem;
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .contact-otp-input {
    width: 62px;
    height: 62px;
    font-size: 1.7rem;
  }
}

.verify-resend-link:disabled {
  color: #9aa39e;
  cursor: not-allowed;
  text-decoration: none;
}

.contact-change-number-btn {
  background: none;
  border: none;
  color: #53655e;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0.25rem;
  text-decoration: underline;
}

.contact-change-number-btn:hover,
.contact-change-number-btn:focus-visible {
  color: var(--brand-dark);
}

.contact-change-number-btn:disabled {
  color: #9aa39e;
  cursor: not-allowed;
  text-decoration: none;
}

.verify-modern-popup {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: min(360px, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 45px rgba(17, 36, 26, 0.18);
  border: 1px solid rgba(35, 74, 52, 0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.verify-modern-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.verify-modern-popup--success {
  border-left: 5px solid #2f7a50;
}

.verify-modern-popup--error {
  border-left: 5px solid #c93a3a;
}

.verify-modern-popup__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(47, 122, 80, 0.1);
  color: #2f7a50;
  flex-shrink: 0;
}

.verify-modern-popup--error .verify-modern-popup__icon {
  background: rgba(201, 58, 58, 0.1);
  color: #c93a3a;
}

.verify-modern-popup__content {
  flex: 1;
}

.verify-modern-popup__title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #1f2d26;
  margin-bottom: 0.15rem;
}

.verify-modern-popup__message {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #54635d;
}

/* ---------- Auth layout ---------- */
.auth-page-wrap{
  display:flex;
  min-height: calc(100vh - 73px);
}
@media (max-width: 991.98px){
  .auth-page-wrap{ flex-direction: column; min-height:auto; }
}

.auth-info-panel{
  flex: 0 0 45%;
  max-width:45%;
  position:relative;
  overflow:hidden;
  background: radial-gradient(circle at 25% 20%, #6CDBAB 0%, #364631 100%);
  color:#fff;
  align-items:center;
  padding: clamp(2rem, 3vw, 4rem);
}
.auth-info-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events:none;
}

.circle-decor{
  position:absolute;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  pointer-events:none;
}
.circle-decor-1{ width:140px; height:140px; top:-40px; left:-40px; }
.circle-decor-2{ width:220px; height:220px; bottom:-80px; right:-60px; }

.auth-info-inner{ position:relative; z-index:1; max-width:34rem; }

.info-badge{
  color:#fff;
  font-size:clamp(0.95rem, 1vw, 1.15rem);
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding: 0;
  font-weight: 600;
}
.info-badge .dot{
  width:6px;height:6px;border-radius:50%;
  background:#fff;
  display:inline-block;
}

.panel-logo{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-top:1.5rem;
}
.panel-logo img{ width:40px; height:40px; }
.panel-logo span{
  font-family: var(--font-display);
  font-size:1.1rem;
  font-weight:600;
}

.auth-heading{
  font-family: var(--font-display);
  font-weight:500;
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem);
  line-height:1.15;
}
.auth-heading em{ font-style:italic; color:#cdeede; }

.auth-copy{
  color:#dcece3;
  font-size: clamp(.95rem, .85rem + .3vw, 1.05rem);
}

.perk-list{
  list-style:none;
  padding:0;
  margin:0;
}
.perk-list li{
  display:flex;
  align-items:flex-start;
  gap:.6rem;
  margin-bottom:.75rem;
  font-size:.95rem;
  color:#eaf5ee;
}
.perk-list .dot{
  width:6px;height:6px;border-radius:50%;
  background:#fff;
  margin-top:.55rem;
  flex-shrink:0;
}

/* ---------- Form panel ---------- */
.auth-form-panel{
  flex:1;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: clamp(1.5rem, 3vw, 4rem);
  background:#fff;
}
.auth-form-inner{
  width:100%;
  max-width:560px;
  padding-top: clamp(0rem, 2vw, 2rem);
}
.form-title{
  font-family: var(--font-display);
  font-size:2rem;
  font-weight:600;
  margin-bottom:.25rem;
}
.form-subtitle{
  color:#8a8a8a;
  margin-bottom:2rem;
}
.form-label{
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.03em;
  color:#555;
  text-transform:uppercase;
}
.form-control, .form-select{
  border-radius:8px;
  border:1px solid #dcdcdc;
  padding:.65rem .85rem;
}
.form-control:focus, .form-select:focus{
  border-color: var(--brand-primary);
  box-shadow:0 0 0 .2rem rgba(47,122,80,.15);
}

.password-field{ position:relative; }
.password-field .form-control{ padding-right:2.6rem; }
.toggle-password{
  position:absolute;
  right:.6rem;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  color:#888;
  font-size:1.05rem;
}

.password-strength{
  display:flex;
  gap:6px;
}
.password-strength .segment{
  flex:1;
  height:4px;
  border-radius:4px;
  background:#e5e5e5;
  transition: background .2s ease;
}
.password-strength .segment.weak{ background:#e05c5c; }
.password-strength .segment.fair{ background:#f0a94e; }
.password-strength .segment.good{ background:#e8d04e; }
.password-strength .segment.strong{ background: var(--brand-primary); }

.password-requirements{
  margin: .55rem 0 0;
  padding-left: 1.2rem;
  color: #c0392b;
  font-size: .78rem;
}
.password-requirements li{
  transition: color .2s ease;
}
.password-requirements li.met{
  color: var(--brand-primary);
}

.form-check-label a{ color: var(--brand-primary); }

.legal-link{
  border: none;
  background: transparent;
  color: var(--brand-primary);
  padding: 0;
  font-weight: 700;
  text-decoration: underline;
}

.legal-link:hover {
  color: #1f6a44;
}

.legal-open-all {
  display: inline;
  text-decoration: underline;
  cursor: pointer;
}

.legal-modal-content {
  border: none;
  border-radius: 18px;
}

.legal-modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.legal-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: .8rem;
}

.legal-modal-body {
  color: #37413d;
  line-height: 1.7;
  font-size: .96rem;
  max-height: 65vh;
}

.legal-read-btn {
  min-width: 230px;
}

.legal-read-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-state-hint {
  min-height: 1.2rem;
  font-size: 0.78rem;
  color: #c0392b;
}
.form-state-hint.text-muted {
  color: var(--brand-primary);
  font-weight: 700;
}

.btn-brand-fill{
  background: var(--brand-primary);
  color:#fff;
  border:none;
  border-radius:8px;
  padding:.85rem;
  font-weight:700;
  letter-spacing:.03em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-brand-fill:hover:not(:disabled){ background:#26643f; color:#fff; transform: scale(1.05); }
.btn-brand-fill:disabled{
  background: #c9d4ce;
  color: #f2f5f3;
  cursor: not-allowed;
  transform: none;
  opacity: 1;
}

.switch-link{
  font-size:.9rem;
  color:#555;
}
.switch-link a{
  color: var(--brand-primary);
  font-weight:700;
  text-decoration:none;
}
.switch-link a:hover{ text-decoration:underline; }