* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--ink);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(201, 162, 75, 0.10), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(201, 162, 75, 0.08), transparent 45%);
}

.scene {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  position: relative;
}

/* Signature element: a small "key" mark — a line with a dot,
   nodding to the idea of a passkey / unlocking an account */
.key-mark {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.7);
}

.key-line {
  width: 46px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}

/* Card */
.card {
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border-radius: 18px;
  padding: 40px 36px 32px;
   background: linear-gradient(
        135deg,
        #5A3F2B,
        #A67C52
    );
  /* background-color:#483727; */
  /* box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 162, 75, 0.12); */
}

.card-head {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  color: white;
}

.card-head h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: white
}

.subtext {
  margin: 0;
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.5;
    color: white

}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

label {
  font-size: 13px;
  font-weight: 600;
    color: white

  /* color: var(--ink-soft); */
}

.forgot-link {
  font-size: 12.5px;
      color: white;


  /* color: var(--gold); */
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

input[type="email"],
input[type="password"] {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd6c4;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.22);
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-inline label {
  font-weight: 400;
  font-size: 13px;
    color: white

  /* color: var(--slate); */
}

.field-inline input[type="checkbox"] {
  accent-color: var(--gold);
  width: 15px;
  height: 15px;
}

.btn-primary {
  margin-top: 4px;
  padding: 13px 14px;
  border: none;
  border-radius: 10px;
  background: var(--ink);
    color: white;

  /* color: var(--paper); */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
      color: white

}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6dfcc;
}

.divider span {
  font-size: 11.5px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Social buttons */
.social-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #ddd6c4;
  font-family: var(--font-body);
  font-size: 13.8px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  background: #fff;
  color: var(--ink);
}

.btn-social:hover {
  box-shadow: 0 6px 14px -6px rgba(20, 23, 43, 0.25);
  transform: translateY(-1px);
}

.btn-linkedin {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}

.btn-email {
  background: #fff;
}

/* Register line */
.register-line {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13.5px;
      color: white

  /* color: var(--slate); */
}

.register-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.register-link:hover {
  text-decoration: underline;
}

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .card {
    padding: 32px 24px 28px;
  }

  .card-head h1 {
    font-size: 24px;
  }

  .key-mark {
    top: 24px;
  }
}


/* Tablet / small laptop: card gets a touch more room to breathe */
@media (max-width: 820px) {
  .scene {
    padding: 40px 18px;
  }

  .card {
    max-width: 420px;
  }
}

/* Mobile: shrink card padding, type scale, tighten spacing */
@media (max-width: 480px) {
  .scene {
    padding: 28px 16px;
    align-items: flex-start;
    padding-top: 88px;
  }

  .card {
    max-width: 100%;
    padding: 30px 22px 26px;
    border-radius: 16px;
  }

  .card-head {
    margin-bottom: 22px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .card-head h1 {
    font-size: 23px;
  }

  .subtext {
    font-size: 13px;
  }

  .login-form {
    gap: 15px;
  }

  input[type="email"],
  input[type="password"] {
    padding: 11px 13px;
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }

  .btn-primary,
  .btn-social {
    padding: 12px 14px;
    font-size: 14px;
  }

  .divider {
    margin: 20px 0 16px;
  }

  .key-mark {
    top: 22px;
  }

  .key-line {
    width: 34px;
  }

  .field-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* Small phones: e.g. iPhone SE, older Android (≤360px) */
@media (max-width: 360px) {
  .scene {
    padding-top: 72px;
  }

  .card {
    padding: 24px 18px 22px;
  }

  .card-head h1 {
    font-size: 21px;
  }

  .btn-social {
    font-size: 13px;
    gap: 8px;
  }

  .social-group {
    gap: 8px;
  }

  .register-line {
    font-size: 12.5px;
  }
}

/* Short viewports (landscape phones): avoid vertical overflow feel */
@media (max-height: 560px) and (orientation: landscape) {
  .scene {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .key-mark {
    display: none;
  }

  .card-head {
    margin-bottom: 16px;
  }

  .login-form {
    gap: 12px;
  }

  .divider {
    margin: 14px 0 12px;
  }

  .social-group {
    gap: 8px;
  }
}

/* Large screens: keep the card from feeling lost in empty space */
@media (min-width: 1440px) {
  .card {
    max-width: 440px;
    padding: 44px 40px 36px;
  }
}

