/* Find your sign-in page: design handoff "option 1b" (ShareVision design system). */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }

:root {
  --sv-purple-dark: #3B0093;
  --sv-purple: #5D21B8;
  --sv-purple-mid: #824DD4;
  --sv-info: #8950FC;
  --sv-info-hover: #7337EE;
  --sv-info-light: #EEE5FF;
  --sv-link: #7417FF;
  --sv-lime-soft: #DCE896;
  --sv-heading: #181C32;
  --sv-text: #3F4254;
  --sv-text-secondary: #5E6278;
  --sv-text-muted: #7E8299;
  --sv-text-subtle: #B5B5C3;
  --sv-border: #E4E6EF;
  --sv-sunken: #F3F6F9;
  --sv-focus: #69B3FF;
  --sv-error: #F64E60;
  --sv-radius: .42rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Poppins, "Segoe UI", system-ui, sans-serif;
  color: var(--sv-text);
  background: #fff;
}

a { color: var(--sv-link); text-decoration: none; }
a:hover { color: var(--sv-purple-dark); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--sv-focus); outline-offset: 2px; }

/* Layout */

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

/* Brand panel */

.brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: #fff;
  background: linear-gradient(160deg, var(--sv-purple) 0%, var(--sv-purple-mid) 39%, var(--sv-purple-dark) 100%);
}

.brand-watermark {
  position: absolute;
  right: -70px;
  bottom: -60px;
  width: 340px;
  opacity: .12;
  border-radius: 50%;
  pointer-events: none;
}

.brand-lockup { position: relative; display: flex; align-items: center; gap: 12px; }
.brand-logo { display: flex; padding: 4px; background: #fff; border-radius: 8px; }
.brand-logo img { display: block; width: 52px; height: 52px; }
.brand-name { font-size: 20px; font-weight: 600; letter-spacing: .2px; }

.brand-copy { position: relative; display: flex; flex-direction: column; gap: 14px; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sv-lime-soft);
}

.brand-headline { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 600; text-wrap: balance; }
.brand-body { margin: 0; max-width: 300px; font-size: 13px; line-height: 1.65; color: var(--sv-info-light); }

/* Form panel */

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 48px 56px 72px;
  background: #fff;
}

/* The reference fills the panel; capped so the field doesn't stretch across very wide screens. */
.panel > .stack { width: 100%; max-width: 560px; }

.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { gap: 22px; }

h1 { margin: 0; font-size: 24px; font-weight: 600; color: var(--sv-heading); }

.lede { margin: 0; font-size: 13px; line-height: 1.65; color: var(--sv-text-secondary); text-wrap: pretty; }

/* Field */

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--sv-text); }

.input-wrap { position: relative; }

.input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--sv-text-muted);
  pointer-events: none;
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  font: 400 13px Poppins, "Segoe UI", system-ui, sans-serif;
  color: var(--sv-text);
  background: #fff;
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  outline: none;
  transition: border-color .15s ease;
}

.input::placeholder { color: var(--sv-text-subtle); }
.input:focus { border-color: var(--sv-focus); }
.input.invalid { border-color: var(--sv-error); }

.error { font-size: 12px; color: var(--sv-error); }
.error:empty { display: none; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  font: 500 14px Poppins, "Segoe UI", system-ui, sans-serif;
  border: 0;
  border-radius: var(--sv-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.btn:hover { text-decoration: none; }

.btn-solid { width: 100%; background: var(--sv-info); color: #fff; }
.btn-solid:hover { background: var(--sv-info-hover); color: #fff; }
.btn-solid[disabled] { opacity: .6; cursor: default; }

.btn-light {
  align-self: flex-start;
  height: 40px;
  font-size: 13px;
  background: var(--sv-info-light);
  color: var(--sv-info);
}

.btn-light:hover { background: var(--sv-info); color: #fff; }

/* Notes */

.privacy { margin: 0; font-size: 12px; line-height: 1.6; color: var(--sv-text-muted); text-wrap: pretty; }
.privacy i { margin-right: 6px; color: var(--sv-text-subtle); }

/* Sent state */

.sent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--sv-info);
  background: var(--sv-info-light);
}

.sent-icon .fad { --fa-primary-color: var(--sv-info); --fa-secondary-color: var(--sv-info); }

.tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: var(--sv-sunken);
  border-radius: 5px;
}

.tips-title { margin: 0; font-size: 13px; font-weight: 600; color: var(--sv-text); }
.tips ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }

.tip { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.55; color: var(--sv-text-secondary); }
.tip i { flex: 0 0 16px; width: 16px; margin-top: 3px; text-align: center; color: var(--sv-info); }

code { font-size: 12px; }

/* Footer */

.footer {
  position: absolute;
  bottom: 24px;
  left: 56px;
  right: 56px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--sv-text-subtle);
}

.footer nav { display: flex; gap: 14px; }
.footer a { color: var(--sv-text-muted); }

/* Narrow screens: brand collapses to a bar */

@media (max-width: 820px) {
  .page { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .brand { padding: 24px; gap: 0; }
  .brand-copy, .brand-watermark { display: none; }
  .panel { padding: 32px 24px 72px; justify-content: flex-start; }
  .footer { left: 24px; right: 24px; }
}
