/* =========================================================
   GROWBIZCONNECT - SIGN-IN CHOOSER (Member / Admin)
   Split-screen layout: brand panel + sign-in panel
   Save as css/choose-login.css
   Brand image: images/login-bg.svg  (change --bg-image to use your own photo)
   ========================================================= */

:root {
  --navy-900: #0a1630;
  --navy-800: #0f2347;
  --blue: #1f6fe0;
  --blue-600: #0c54a0;
  --purple: #6d4ee0;
  --cyan: #22c7e6;
  --ink: #0f1b33;
  --muted: #5b6785;
  --line: #dde4f1;
  --bg-image: url("../images/login-bg.svg");
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Brand panel (left) ---------- */
.brand-panel {
  position: relative;
  display: flex;
  align-items: center;
  padding: 48px 56px;
  color: #fff;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(160deg, rgba(10, 22, 48, 0.55) 0%, rgba(10, 22, 48, 0.25) 100%),
    var(--bg-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.brand-inner {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.logo {
  display: inline-block;
  margin-bottom: 36px;
  padding: 10px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.55);
}

.logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-panel h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.brand-sub {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(226, 234, 255, 0.82);
}

.features {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  list-style: none;
}

.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.97rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.f-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #c4f3ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.f-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sign-in panel (right) ---------- */
.signin-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 28px;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(109, 78, 224, 0.07), transparent 70%),
    radial-gradient(500px 260px at 0% 0%, rgba(34, 199, 230, 0.08), transparent 70%),
    #fff;
}

.signin-box {
  width: 100%;
  max-width: 380px;
}

.signin-box h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.sub {
  margin: 8px 0 28px;
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-decoration: none;
  border-radius: 14px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.bl-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.bl-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bl-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.bl-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bl-desc {
  font-size: 0.82rem;
  line-height: 1.35;
}

.bl-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

/* Member: filled gradient */
.btn-member {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  box-shadow: 0 12px 24px -12px rgba(70, 80, 230, 0.8);
}

.btn-member .bl-icon {
  background: rgba(255, 255, 255, 0.18);
}

.btn-member .bl-desc {
  color: rgba(255, 255, 255, 0.85);
}

.btn-member:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -12px rgba(70, 80, 230, 0.9);
}

/* Admin: outline */
.btn-admin {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 6px 16px -12px rgba(10, 22, 48, 0.4);
}

.btn-admin .bl-icon {
  color: var(--blue);
  background: rgba(31, 111, 224, 0.1);
}

.btn-admin .bl-desc {
  color: var(--muted);
}

.btn-admin .bl-arrow {
  color: #8a97b3;
}

.btn-admin:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 14px 26px -14px rgba(31, 111, 224, 0.5);
}

.btn-admin:hover .bl-arrow {
  color: var(--blue);
}

.btn-login:hover .bl-arrow {
  transform: translateX(3px);
}

.btn-login:focus-visible,
.back-home:focus-visible {
  outline: 3px solid rgba(31, 111, 224, 0.5);
  outline-offset: 3px;
}

/* "or" divider */
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9aa6c0;
}

.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- Links & footer ---------- */
.back-home {
  display: inline-block;
  margin-top: 26px;
  padding: 6px 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--blue-600);
  text-decoration: none;
  border-radius: 6px;
}

.back-home:hover {
  color: var(--purple);
  text-decoration: underline;
}

.developed-by {
  font-size: 0.82rem;
  text-align: center;
  color: #8592ad;
}

.developed-by strong {
  color: var(--navy-800);
  font-weight: 600;
}

/* ---------- Tablet & phone: stack panels ---------- */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .brand-panel {
    padding: 32px 24px 60px;
    text-align: center;
  }

  .brand-inner {
    max-width: 560px;
    margin: 0 auto;
  }

  .logo {
    margin-bottom: 18px;
  }

  .logo img {
    height: 40px;
  }

  .brand-panel h1 {
    font-size: 1.35rem;
  }

  .brand-sub {
    margin-top: 8px;
    font-size: 0.93rem;
  }

  .features {
    display: none;
  }

  /* sign-in card overlaps the brand header */
  .signin-panel {
    justify-content: flex-start;
    margin-top: -30px;
    padding: 32px 22px 28px;
    border-radius: 26px 26px 0 0;
    position: relative;
    box-shadow: 0 -16px 40px -20px rgba(10, 22, 48, 0.45);
  }

  .signin-box {
    max-width: 420px;
  }

  .signin-box h2 {
    font-size: 1.5rem;
  }

  .sub {
    margin-bottom: 22px;
  }
}

@media (max-width: 380px) {
  .brand-panel {
    padding: 26px 18px 54px;
  }

  .signin-panel {
    padding: 28px 16px 24px;
  }

  .btn-login {
    padding: 12px 12px;
    gap: 12px;
  }

  .bl-icon {
    width: 38px;
    height: 38px;
  }
}

/* Short landscape screens */
@media (max-height: 560px) and (min-width: 901px) {
  .brand-panel {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .features {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* =========================================================
   GROWBIZCONNECT - "Dashboard" back button (shared by every page)
   Load AFTER the page's own CSS:
   <link rel="stylesheet" href="css/back-button.css?v=1">
   ========================================================= */
a.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
    margin: 0 auto 16px 0;      
  padding: 0 18px 0 14px;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: #0c54a0;
  background: #fff;
  border: 1px solid #cfdcf3;
  border-radius: 999px;
  box-shadow: 0 6px 16px -10px rgba(10, 22, 48, 0.45);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

a.back-link:hover {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #1f6fe0, #0c54a0);
  border-color: transparent;
  box-shadow: 0 12px 22px -12px rgba(12, 84, 160, 0.9);
  transform: translateY(-1px);
}

a.back-link:active {
  transform: translateY(0);
}

a.back-link:focus-visible {
  outline: 3px solid rgba(31, 111, 224, 0.45);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  a.back-link {
    min-height: 38px;
    margin-bottom: 12px;
    font-size: 0.88rem;
  }
}
