/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: 100vh;
  background: var(--off-white);
}

.auth-shell {
  display: grid;
  min-height: 100vh;
}

.auth-aside {
  display: none;
  background: var(--navy);
  color: #fff;
  padding: 36px 40px;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 90%, rgba(211, 47, 47, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(255,255,255,0.04), transparent);
  pointer-events: none;
}

.auth-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 48px;
}

.auth-logo .logo-text {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.8px;
}

.auth-logo .logo-mark {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--red);
  margin-left: 3px;
}

.auth-aside-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 380px;
}

.auth-aside-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #f87171;
  margin-bottom: 14px;
}

.auth-aside h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.auth-aside-copy {
  font-size: 14.5px;
  color: #a8b4c4;
  line-height: 1.65;
  margin-bottom: 28px;
}

.auth-aside-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-aside-points li {
  font-size: 13.5px;
  color: #c0c8d4;
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}

.auth-aside-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.auth-aside-foot {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #6b7482;
  margin-top: 40px;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.auth-card--wide {
  max-width: 480px;
}

.auth-card-head {
  margin-bottom: 28px;
}

.auth-card-head h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-card-head p {
  font-size: 14px;
  color: var(--muted);
}

.auth-form .field {
  margin-bottom: 18px;
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.field-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--red);
}

.field-link:hover { text-decoration: underline; }

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"],
.auth-form select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12, 21, 36, 0.08);
}

.auth-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235c5c5c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  padding-right: 58px;
}

.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 3px;
}

.toggle-pw:hover { color: var(--navy); background: var(--off-white); }

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

.field-hint {
  font-size: 12.5px;
  color: #888;
  margin: -8px 0 16px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}

.check-row input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
}

.check-row a {
  color: var(--red);
  font-weight: 500;
}

.check-row a:hover { text-decoration: underline; }

.btn-block {
  width: 100%;
  margin-top: 8px;
  height: 46px;
  font-size: 14.5px;
}

.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--red);
  font-weight: 600;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 18px;
  color: #aaa;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-help {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-help a {
  color: var(--navy);
  font-weight: 500;
}

.auth-help a:hover { color: var(--red); }

@media (min-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr 1fr;
  }
  .auth-aside {
    display: flex;
  }
  .field-row {
  display: block;

}
}

@media (min-width: 1100px) {
  .auth-shell {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .auth-aside {
    padding: 40px 56px;
  }
}

/* Mobile */
@media (max-width: 899px) {

  .field-row{
    display: block;
  }

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

  .field{
    width: 100%;
  }

  .auth-form input[type="email"],
  .auth-form input[type="password"],
  .auth-form input[type="text"],
  .auth-form input[type="tel"],
  .auth-form select,
  .input-wrap,
  .input-wrap input{
    width: 100%;
  }

  .field-link{
    display: inline-block;
    margin-top: 6px;
  }

}