/* =========================================================
   LIVELY LEGACY CUSTOMER LOGIN PAGE
========================================================= */

.login-page {
  min-height: 100vh;
  background: #fffaf4;
}

.login-hero {
  min-height: calc(100vh - 90px);
  padding: 60px 0;
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      circle at 12% 25%,
      rgba(212, 160, 23, 0.1),
      transparent 32%
    ),
    linear-gradient(
      90deg,
      #fff7ea,
      #f7e4ca
    );
  border-bottom: 1px solid #ead8c1;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 46px;
  align-items: center;
}

/* =========================================================
   LEFT CONTENT
========================================================= */

.login-copy {
  min-width: 0;
}

.login-copy .eyebrow {
  margin: 0 0 14px;
  color: var(--maroon);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-copy h1 {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.login-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #5a667a;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 650;
}

.login-copy strong {
  color: var(--maroon);
  font-weight: 900;
}

/* =========================================================
   LOGIN FEATURES
========================================================= */

.login-features {
  max-width: 630px;
  margin-top: 30px;
  display: grid;
  gap: 17px;
}

.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.feature-check {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(117, 21, 36, 0.1);
  color: var(--maroon);
  font-size: 15px;
  font-weight: 900;
}

.login-feature strong {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.login-feature p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
}

/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
  width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ead8c1;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--maroon),
    var(--gold)
  );
}

.login-step {
  position: relative;
  z-index: 1;
}

.login-step h2 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.login-step > p {
  margin: 0 0 22px;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

/* =========================================================
   STATUS MESSAGES
========================================================= */

.status-box {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #ead8c1;
  border-radius: 10px;
  background: #fff6e9;
  color: #061b32;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

.status-box.info {
  color: #184d78;
  background: #eef7ff;
  border-color: #bcdcf4;
}

.status-box.success {
  color: #0d7a32;
  background: #effaf3;
  border-color: #bfe8cc;
}

.status-box.error {
  color: var(--maroon);
  background: #fff1f3;
  border-color: #ecc7ce;
}

/* =========================================================
   FORM
========================================================= */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  color: #243044;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
}

.form-field > input,
.form-field select {
  width: 100%;
  height: 50px;
  min-width: 0;
  border: 1px solid #ead8c1;
  border-radius: 9px;
  outline: none;
  background: #fffaf4;
  color: #1f2937;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field > input::placeholder,
.phone-input-wrap input::placeholder {
  color: #98a2b3;
  font-weight: 600;
}

.form-field select {
  cursor: pointer;
}

.form-field > input:focus,
.form-field select:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.14);
}

.form-field small {
  color: #667085;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 700;
}

/* =========================================================
   +91 MOBILE NUMBER INPUT
========================================================= */

.phone-input-wrap {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ead8c1;
  border-radius: 9px;
  background: #fffaf4;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.phone-input-wrap:focus-within {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.14);
}

.country-code {
  height: 100%;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid #ead8c1;
  background: #f6e8d5;
  color: #243044;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.phone-input-wrap input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #1f2937;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.phone-input-wrap input:focus {
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
}

/* =========================================================
   INPUT UTILITIES
========================================================= */

.form-field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.form-field input[type="number"]::-webkit-inner-spin-button,
.form-field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1f2937;
  -webkit-box-shadow: 0 0 0 1000px #fffaf4 inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================
   BUTTONS
========================================================= */

.primary-login-btn {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 8px;
  background: var(--maroon);
  color: #ffffff;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 900;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.primary-login-btn:hover:not(:disabled) {
  background: var(--maroon-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(117, 21, 36, 0.2);
}

.primary-login-btn:active:not(:disabled) {
  transform: translateY(0);
}

.primary-login-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.text-btn {
  width: 100%;
  margin-top: 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--maroon);
  padding: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--maroon-dark);
  background: rgba(117, 21, 36, 0.05);
}

.primary-login-btn:focus-visible,
.text-btn:focus-visible,
.form-field input:focus-visible,
.form-field select:focus-visible {
  outline: 3px solid rgba(212, 160, 23, 0.3);
  outline-offset: 2px;
}

/* =========================================================
   SMS NOTE
========================================================= */

.login-step .sms-note {
  margin: 13px 0 0;
  color: #7b8494;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.45;
  font-weight: 650;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .login-hero {
    min-height: auto;
    padding: 50px 0;
  }

  .login-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .login-copy {
    text-align: center;
  }

  .login-copy > p:not(.eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }

  .login-features {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
  }

  .login-card {
    max-width: 520px;
    margin: 0 auto;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {
  .login-hero {
    padding: 38px 0;
  }

  .login-layout {
    gap: 28px;
  }

  .login-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .login-copy h1 {
    font-size: 36px;
  }

  .login-copy > p:not(.eyebrow) {
    font-size: 14px;
  }

  .login-features {
    display: none;
  }

  .login-step h2 {
    font-size: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {
  .login-card {
    padding: 22px 16px;
  }

  .login-copy h1 {
    font-size: 32px;
  }

  .country-code {
    padding: 0 11px;
  }

  .phone-input-wrap input {
    padding: 0 11px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .primary-login-btn,
  .text-btn,
  .form-field input,
  .form-field select,
  .phone-input-wrap {
    transition: none;
  }
}