/* easyprop CRM sign-in page, matched to easypropcrm.co.za (25 November 2026).
   Loaded after the other CRM stylesheets, so it overrides earlier login rules.
   Tokens follow DESIGN.md: navy #0F1729, teal #0DA6A3, deep teal #087C7A,
   teal-60 #6ECAC8, teal-20 #CFEDED, slate #5B6273, cloud #F4F6F8. */

.login-screen {
  --auth-navy: #0F1729;
  --auth-teal: #0DA6A3;
  --auth-deep: #087C7A;
  --auth-teal-60: #6ECAC8;
  --auth-teal-20: #CFEDED;
  --auth-slate: #5B6273;
  --auth-cloud: #F4F6F8;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  color: var(--auth-navy);
  background:
    radial-gradient(circle at 14% 20%, rgb(110 202 200 / 10%), transparent 36%),
    radial-gradient(circle at 86% 84%, rgb(13 166 163 / 16%), transparent 40%),
    linear-gradient(122deg, #0F1729 0%, #0F1729 65%, #087C7A 100%);
}

/* Concentric orbit rings, clipped off the corners */
.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  border: 1px solid rgb(110 202 200 / 45%);
  background: none;
  opacity: 1;
  pointer-events: none;
}
.login-screen::before {
  right: -180px;
  bottom: -220px;
  width: 620px;
  height: 620px;
  box-shadow: 0 0 0 56px rgb(110 202 200 / 8%), 0 0 0 128px rgb(110 202 200 / 5%), 0 0 0 210px rgb(110 202 200 / 3%);
}
.login-screen::after {
  left: -200px;
  top: -200px;
  width: 460px;
  height: 460px;
  border-color: rgb(110 202 200 / 35%);
  box-shadow: 0 0 0 44px rgb(110 202 200 / 6%), 0 0 0 100px rgb(110 202 200 / 4%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 72px;
  align-items: center;
}

/* Left-hand pitch, on the navy gradient */
.auth-pitch { color: var(--auth-cloud); }
.auth-eyebrow {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--auth-teal-60);
}
.auth-pitch h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.075;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
}
.auth-pitch h1 span { color: var(--auth-teal-60); }
.auth-lead {
  margin: 0 0 28px;
  max-width: 30em;
  font-size: 16px;
  line-height: 1.625;
  color: rgb(244 246 248 / 86%);
}
.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--auth-cloud);
}
.auth-points li::before {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--auth-teal-20) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1729' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 13px;
  font-weight: 700;
  color: var(--auth-teal-60);
  text-decoration: none;
}
.auth-back:hover,
.auth-back:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Sign-in card */
.login-screen .login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 32px 32px 26px;
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgb(4 10 22 / 38%);
  font-family: inherit;
}
.login-screen .login-logo { text-align: center; margin: 0 0 22px; }
.login-screen .login-brand-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
}
.login-screen .login-logo-text {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--auth-deep);
}
.login-screen .login-logo-text:empty { display: none; }
.login-screen .login-logo-sub {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--auth-navy);
}

/* The CRM's own styles make the card a flex column with a 16px gap and each
   form-group a flex column with an 8px gap; reset both so only these margins apply. */
.login-screen .login-card { display: block; gap: 0; }
.login-screen .form-group { display: block; gap: 0; margin: 0 0 14px; }
.login-screen .form-label {
  display: block;
  margin: 0 0 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-navy);
  text-transform: none;
  letter-spacing: 0;
}
.login-screen .form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #CBD2DB;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  color: var(--auth-navy);
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-screen .form-input::placeholder { color: #8A93A3; }
.login-screen .form-input:focus {
  outline: none;
  border-color: var(--auth-deep);
  box-shadow: 0 0 0 3px rgb(8 124 122 / 18%);
}
.login-screen .pw-wrap { position: relative; }
.login-screen .pw-wrap .form-input { padding-right: 52px; }
.login-screen .pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--auth-slate);
  cursor: pointer;
}
.login-screen .pw-toggle:hover { color: var(--auth-deep); background: var(--auth-cloud); }
.login-screen .pw-toggle svg { width: 18px; height: 18px; }

.login-screen .login-error {
  min-height: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  color: #B42318;
}
.login-screen .login-error:not(:empty) {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FEF3F2;
}

.login-screen #login-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 30px;
  background: var(--auth-navy);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
}
.login-screen #login-btn:hover,
.login-screen #login-btn:focus-visible { background: var(--auth-deep); color: #fff; }
.login-screen #login-btn:focus-visible { outline: 3px solid rgb(8 124 122 / 35%); outline-offset: 2px; }
.login-screen #login-btn:disabled { opacity: .7; cursor: default; }

.auth-trial {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #0F172916;
  text-align: center;
  font-size: 14px;
  color: var(--auth-slate);
}
.auth-trial a {
  color: var(--auth-deep);
  font-weight: 700;
  text-decoration: none;
}
.auth-trial a:hover,
.auth-trial a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .login-screen { padding: 40px 20px; }
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 440px;
  }
  .auth-pitch { text-align: center; }
  .auth-eyebrow { margin-bottom: 12px; }
  .auth-pitch h1 { margin: 0; font-size: 32px; line-height: 1.15; }
  .auth-lead,
  .auth-points { display: none; }
  .auth-back { margin-top: 14px; }
}

@media (max-width: 480px) {
  .login-screen { padding: 28px 16px; align-items: flex-start; }
  .login-screen .login-card { padding: 28px 20px 24px; border-radius: 20px; }
  .auth-pitch h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-screen .form-input,
  .login-screen #login-btn { transition: none; }
}
