/*
  BlooTalk — sign in / register page.
  Layout mirrors bloocrm.com/app: dark navy brand band beside a white auth card.
*/

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* --- header (bloocrm .lp-header) ---------------------------------------- */
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid var(--f-line);
  box-shadow: 0 1px 0 rgba(16,35,58,.08);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--f-navy); font-size: 20px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: var(--f-r-btn);
  background: linear-gradient(135deg, var(--f-blue), #5aa2ff);
  display: grid; place-items: center; color: #fff; font-size: 18px;
}
.hdr-phone { color: var(--f-text); text-decoration: none; font-size: 14px; }
.hdr-phone:hover { color: var(--f-blue); }

/* --- two-column shell --------------------------------------------------- */
.shell {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  max-width: 1120px; width: 100%;
  margin: 0 auto; padding: 40px 24px 56px;
  gap: 48px; align-items: center;
}

/* Brand side — bloocrm's dark "band" family. */
.brand {
  background: linear-gradient(160deg, var(--f-band), var(--f-footer));
  border: 1px solid var(--f-band-border);
  border-radius: var(--f-r-media);
  box-shadow: var(--f-sh-media);
  padding: 44px 40px;
  color: var(--f-band-text);
}
.brand h1 { margin: 0 0 14px; font-size: 34px; line-height: 1.2; color: #fff; font-weight: 800; }
.brand h1 span { color: var(--f-blue); }
.brand > p { margin: 0 0 30px; color: var(--f-band-dim); font-size: 16px; line-height: 1.6; }
.feature { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.feature-icon {
  flex: none; width: 38px; height: 38px; border-radius: var(--f-r-btn);
  background: var(--f-band-card); border: 1px solid var(--f-band-border);
  display: grid; place-items: center; font-size: 17px;
}
.feature b { display: block; color: #fff; font-size: 15px; margin-bottom: 3px; font-weight: 700; }
.feature p { margin: 0; font-size: 14px; color: var(--f-band-dim); line-height: 1.5; }

/* --- auth card ---------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--f-line);
  border-radius: var(--f-r-card);
  box-shadow: var(--f-sh-card);
  padding: 32px;
}
.card h2 { margin: 0 0 6px; color: var(--f-navy); font-size: 23px; font-weight: 800; }
.card .sub { margin: 0 0 24px; font-size: 14px; color: var(--f-muted); }

/* Pill tabs — bloocrm --f-r-pill on a --f-soft track. */
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--f-soft); border-radius: var(--f-r-pill);
  padding: 4px; margin-bottom: 26px;
}
.tab {
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--f-text);
  padding: 10px; border-radius: var(--f-r-pill); transition: .2s;
}
.tab[aria-selected="true"] { background: #fff; color: var(--f-blue); box-shadow: 0 2px 6px rgba(22,35,58,.10); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--f-navy); margin-bottom: 7px; }
.input, .select {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 15px;
  color: var(--f-navy); background: #fff;
  border: 1px solid var(--f-line); border-radius: var(--f-r-btn);
  transition: .18s; outline: none;
}
.input:focus, .select:focus { border-color: var(--f-blue); box-shadow: 0 0 0 3px rgba(46,134,255,.16); }
.input:disabled { background: var(--f-page); color: var(--f-muted); }
.input::placeholder { color: #b6bfcd; }

/* Country code + number */
.phone-row { display: grid; grid-template-columns: 116px 1fr; gap: 10px; }

.btn-block { width: 100%; display: block; }
.hint { font-size: 12.5px; color: var(--f-muted); margin: 9px 0 0; line-height: 1.5; }

/* --- OTP ---------------------------------------------------------------- */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input {
  width: 100%; aspect-ratio: 1 / 1.15; text-align: center;
  font-family: inherit; font-size: 22px; font-weight: 700; color: var(--f-navy);
  border: 1px solid var(--f-line); border-radius: var(--f-r-btn);
  background: #fff; outline: none; transition: .18s;
}
.otp input:focus { border-color: var(--f-blue); box-shadow: 0 0 0 3px rgba(46,134,255,.16); }
.otp input.filled { border-color: var(--f-blue); background: var(--f-soft); }

.sent-to {
  background: var(--f-soft); border-radius: var(--f-r-btn);
  padding: 12px 14px; margin-bottom: 18px;
  font-size: 14px; color: var(--f-navy);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sent-to b { font-weight: 700; }

.linkbtn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; color: var(--f-blue);
}
.linkbtn:hover:not(:disabled) { color: var(--f-blue-dark); text-decoration: underline; }
.linkbtn:disabled { color: var(--f-muted); cursor: not-allowed; text-decoration: none; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.center { text-align: center; margin-top: 18px; font-size: 14px; }

/* --- messages ----------------------------------------------------------- */
.msg { border-radius: var(--f-r-btn); padding: 11px 14px; font-size: 14px; margin: 16px 0 0; line-height: 1.5; }
.msg.error   { background: #fdeceb; color: #a3241d; border: 1px solid #f6cfcc; }
.msg.success { background: #e8f8f2; color: #0a6a4c; border: 1px solid #c5ebdd; }
.msg.info    { background: var(--f-soft); color: var(--f-navy); border: 1px solid #d6e6ff; }

.spinner {
  display: inline-block; width: 16px; height: 16px; vertical-align: -3px;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.hidden { display: none !important; }

/* --- signed-in state ---------------------------------------------------- */
.done-mark {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  background: linear-gradient(135deg, var(--f-blue), #5aa2ff);
  display: grid; place-items: center; color: #fff; font-size: 30px;
  box-shadow: var(--f-sh-btn);
}
.stores { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }

.foot {
  background: var(--f-footer); color: var(--f-band-dim);
  text-align: center; padding: 18px; font-size: 13px;
}
.foot a { color: var(--f-band-text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; gap: 28px; padding: 26px 18px 40px; }
  .brand { order: 2; padding: 30px 26px; }
  .brand h1 { font-size: 27px; }
  .card { order: 1; }
}
@media (max-width: 460px) {
  .hdr { padding: 14px 18px; }
  .hdr-phone { display: none; }
  .card { padding: 24px 20px; }
  .otp { gap: 6px; }
  .otp input { font-size: 19px; }
}
