:root {
  --font-sans: "Figtree", Arial, Helvetica, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
label,
a,
p,
span,
small,
strong,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans) !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

:root {
  --page: #e9edf2;
  --panel: #ffffff;
  --text: #262c35;
  --muted: #7a828e;
  --line: #d7dce2;
  --accent: #49515e;
  --accent-hover: #3f4652;
  --fb: #4267b2;
  --danger: #a24747;
  --shadow: 0 36px 90px rgba(64, 73, 85, .22), 0 8px 24px rgba(64, 73, 85, .12);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.84), transparent 32%),
    radial-gradient(circle at 84% 8%, rgba(255,255,255,.68), transparent 28%),
    linear-gradient(135deg, #edf1f6 0%, #e5eaf0 52%, #edf1f5 100%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.auth-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 44px 24px;
  overflow: hidden;
}

.page-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
}

.page-glow-one {
  width: 34rem;
  height: 22rem;
  top: -8rem;
  left: -5rem;
  background: rgba(255,255,255,.56);
}

.page-glow-two {
  width: 38rem;
  height: 30rem;
  right: -8rem;
  bottom: -14rem;
  background: rgba(191,200,211,.28);
}

.auth-card {
  width: min(1180px, 100%);
  min-height: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-panel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 5%, rgba(255,255,255,.96), transparent 30%),
    linear-gradient(180deg, #f4f6f8 0%, #e2e6ea 100%);
}

.brand-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 56px;
  color: #606873;
}

.brand-mark {
  width: 58px;
  height: 50px;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  padding-left: .46em;
  text-transform: uppercase;
  letter-spacing: .46em;
  font-size: 1.16rem;
}

.relief {
  position: absolute;
  inset: 85px -30px -30px;
  display: grid;
  place-items: center;
  opacity: .98;
}

.relief svg {
  width: 108%;
  height: 100%;
}

.brand-tagline {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 68px;
  width: 84%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 15px;
  color: #6f7782;
}

.brand-tagline span {
  height: 1px;
  background: rgba(111,119,130,.25);
}

.brand-tagline p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .72rem;
  white-space: nowrap;
}

.form-panel {
  display: grid;
  place-items: center;
  padding: 60px clamp(34px, 5vw, 82px);
  background: rgba(255,255,255,.94);
}

.form-wrap {
  width: min(100%, 500px);
}

.form-heading {
  margin-bottom: 34px;
}

h1 {
  margin: 0;
  font-family: var(--font-sans) !important;
  font-size: clamp(2.25rem, 4.4vw, 3.15rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.035em;
  color: #303640;
}

.form-heading p {
  max-width: 430px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.field {
  margin-top: 19px;
}

.field label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .94rem;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.input-wrap > .field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: #9aa2ad;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 52px 0 48px;
  outline: none;
  color: var(--text);
  background: rgba(255,255,255,.92);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder { color: #9ba2ac; }

input:hover { background: #fff; }

input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(162,71,71,.1);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #929aa5;
  cursor: pointer;
}

.password-toggle:hover {
  background: #f5f6f8;
  color: #707986;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }

.error {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: .82rem;
}

.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -1px;
}

.forgot-row a {
  font-size: .9rem;
  text-underline-offset: 3px;
}

.primary-button,
.facebook-button {
  width: 100%;
  height: 58px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.primary-button {
  margin-top: 31px;
  border: 0;
  background: linear-gradient(180deg, #525a66, #454c57);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(67,75,87,.2);
}

.primary-button:hover {
  background: linear-gradient(180deg, #49515c, #3e454f);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(67,75,87,.25);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 17px;
  margin: 28px 0;
  color: #89919b;
}

.divider span {
  height: 1px;
  background: var(--line);
}

.divider small { font-size: .9rem; }

.facebook-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1.5px solid #69717d;
  background: rgba(255,255,255,.84);
  color: #333a45;
  font-weight: 700;
}

.facebook-button svg {
  width: 24px;
  height: 24px;
  color: var(--fb);
}

.facebook-button:hover {
  border-color: #444c58;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(74,82,94,.11);
}

.security-note {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #858d98;
  font-size: .84rem;
}

.security-note svg {
  width: 22px;
  flex: 0 0 22px;
}

.status-message {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #eef4ef;
  color: #48624e;
  text-align: center;
  font-size: .88rem;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(74,89,108,.22);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .auth-card {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .brand-panel {
    min-height: 250px;
  }

  .brand-lockup {
    padding-top: 34px;
  }

  .relief {
    inset: 45px -30px -150px;
    opacity: .42;
  }

  .brand-tagline {
    bottom: 25px;
  }

  .form-panel {
    padding: 46px 32px 52px;
  }
}

@media (max-width: 560px) {
  .auth-shell { padding: 18px 12px; }

  .auth-card { border-radius: 18px; }

  .brand-panel { min-height: 205px; }

  .brand-name {
    font-size: .88rem;
    letter-spacing: .38em;
  }

  .brand-tagline {
    width: 90%;
    gap: 9px;
  }

  .brand-tagline p {
    font-size: .58rem;
    letter-spacing: .16em;
  }

  .form-panel { padding: 38px 20px 42px; }

  h1 { font-size: 2.15rem; }

  input,
  .primary-button,
  .facebook-button { height: 56px; }

  .security-note {
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.brand-panel {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(244, 246, 248, 0.10), rgba(228, 232, 236, 0.18)),
    url("../images/bella_grace_bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.brand-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 42px 44px 0;
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-mark,
.brand-name,
.relief,
.brand-tagline {
  display: none !important;
}

.field {
  margin-top: 14px;
}

.field + .field {
  margin-top: 10px;
}

.error {
  min-height: 12px;
  margin-top: 4px;
}

.forgot-row {
  margin-top: 1px;
}

.security-note {
  margin-top: 30px;
  gap: 10px;
  color: #858d98;
}

.security-shield {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #98a2ad;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 920px) {
  .brand-panel {
    min-height: 250px;
    background-position: center 42%;
  }

  .brand-lockup {
    padding: 28px 30px 0;
  }

  .brand-logo {
    width: min(72%, 320px);
  }
}

@media (max-width: 560px) {
  .brand-panel {
    min-height: 205px;
  }

  .brand-lockup {
    padding: 22px 20px 0;
  }

  .brand-logo {
    width: min(78%, 290px);
  }
}

:root {
  --focus-ring: rgba(64, 83, 108, .20);
  --link: #334a67;
  --link-hover: #20364f;
}

.auth-card {
  min-height: 680px;
}

.brand-panel {
  min-height: 680px;
  background-image:
    linear-gradient(135deg, rgba(47, 56, 68, .17), rgba(255, 255, 255, .02) 54%, rgba(50, 59, 70, .10)),
    url("../images/bella_grace_bg.jpg");
  background-blend-mode: multiply, normal;
  box-shadow: inset -24px 0 44px rgba(42, 49, 58, .08);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, transparent 28%, rgba(44, 52, 62, .08) 100%),
    linear-gradient(90deg, rgba(35, 43, 53, .05), transparent 35%, rgba(255, 255, 255, .08));
}

.brand-logo {
  filter: contrast(1.22) brightness(.82) drop-shadow(0 1px 0 rgba(255,255,255,.65));
}

.form-panel {
  padding-top: 52px;
  padding-bottom: 52px;
}

.form-wrap {
  transform: translateY(6px);
}

.form-heading {
  margin-bottom: 28px;
}

.form-heading p {
  color: #68717e;
}

input {
  border-color: #c7ced7;
  background: #fff;
}

input::placeholder {
  color: #858f9d;
}

.input-wrap > .field-icon,
.password-toggle {
  color: #7f8997;
}

input:hover {
  border-color: #aeb7c3;
}

input:focus {
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
  background: #fff;
}

.forgot-row {
  margin-top: 3px;
}

.forgot-row a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 9px;
  margin-right: -9px;
  border-radius: 8px;
  color: var(--link);
  font-size: .94rem;
  font-weight: 650;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color .18s ease, background .18s ease;
}

.forgot-row a:hover {
  color: var(--link-hover);
  background: #f0f3f6;
}

.primary-button {
  margin-top: 24px;
}

.security-note {
  color: #6f7885;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(51, 74, 103, .26);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .auth-card {
    min-height: auto;
  }

  .brand-panel {
    min-height: 230px;
    box-shadow: inset 0 -20px 36px rgba(42, 49, 58, .08);
  }

  .form-wrap {
    transform: none;
  }
}

@media (max-width: 560px) {
  .brand-panel {
    min-height: 154px;
    background-position: center 38%;
  }

  .brand-lockup {
    padding-top: 18px;
  }

  .brand-logo {
    width: min(72%, 250px);
  }

  .form-panel {
    padding-top: 34px;
  }

  .form-heading {
    margin-bottom: 24px;
  }

  .forgot-row a {
    min-height: 40px;
  }
}

.brand-panel {
  background-image:
    linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .82)),
    url("../images/bella_grace_bg.jpg");
  background-blend-mode: normal;
  box-shadow: inset -18px 0 36px rgba(82, 91, 104, .035);
}

.brand-panel::after {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .24) 58%, rgba(238, 241, 245, .22) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .04) 52%, rgba(245, 247, 249, .20));
}

.brand-logo {
  filter: contrast(1.08) brightness(.92) drop-shadow(0 1px 0 rgba(255,255,255,.72));
}

@media (max-width: 920px) {
  .brand-panel {
    box-shadow: inset 0 -14px 28px rgba(82, 91, 104, .035);
  }
}

.brand-panel {
  background-image:
    linear-gradient(rgba(255, 255, 255, .52), rgba(255, 255, 255, .58)),
    url("../images/bella_grace_bg.jpg");
  background-blend-mode: normal;
  box-shadow: inset -20px 0 40px rgba(62, 71, 84, .055);
}

.brand-panel::after {
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, .02) 0%, rgba(255, 255, 255, .10) 58%, rgba(225, 229, 234, .14) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 50%, rgba(239, 242, 246, .10));
}

.brand-logo {
  filter: contrast(1.14) brightness(.88) drop-shadow(0 1px 0 rgba(255,255,255,.68));
}

@media (max-width: 920px) {
  .brand-panel {
    box-shadow: inset 0 -16px 32px rgba(62, 71, 84, .05);
  }
}
