/* Dunkage local login/signup */

* {
  box-sizing: border-box;
}

.local-auth-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(91,46,229,.26), transparent 38%),
    radial-gradient(circle at bottom right, rgba(255,227,108,.18), transparent 34%),
    linear-gradient(135deg, #f8f6ff, #edf2ff);
  color: #24194d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.local-auth-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 480px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  padding: 36px 0;
}

.local-auth-card {
  border-radius: 34px;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(91,46,229,.12);
  box-shadow: 0 34px 90px rgba(61,35,138,.16);
  backdrop-filter: blur(18px);
}

.local-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #24194d;
  text-decoration: none;
  font-size: 22px;
  font-weight: 1000;
}

.local-auth-brand span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5b2ee5, #886fff);
  color: #fff;
}

.local-auth-heading {
  margin: 28px 0 20px;
}

.local-auth-heading > span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f0ebff;
  color: #5b2ee5;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.local-auth-heading h1 {
  margin: 14px 0 10px;
  font-size: clamp(42px, 6vw, 66px);
  line-height: .88;
  letter-spacing: -.075em;
}

.local-auth-heading p {
  margin: 0;
  color: #695f83;
  font-weight: 800;
  line-height: 1.45;
}

.local-auth-alert {
  border-radius: 18px;
  padding: 13px 15px;
  margin-bottom: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.local-auth-alert.error {
  background: #ffeaf1;
  color: #8b345b;
}

.local-auth-alert.success {
  background: #effaf3;
  color: #207247;
}

.local-auth-form {
  display: grid;
  gap: 13px;
}

.local-auth-form label {
  display: grid;
  gap: 7px;
}

.local-auth-form label span {
  color: #584d78;
  font-size: 13px;
  font-weight: 1000;
}

.local-auth-form label small {
  color: #776f92;
  font-size: 12px;
  font-weight: 750;
}

.local-auth-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(91,46,229,.16);
  border-radius: 17px;
  padding: 0 15px;
  background: #fff;
  color: #24194d;
  font: inherit;
  font-weight: 850;
  outline: none;
  transition: box-shadow .16s ease, border-color .16s ease;
}

.local-auth-form input:focus {
  border-color: #5b2ee5;
  box-shadow: 0 0 0 5px rgba(91,46,229,.10);
}

.local-auth-form button,
.local-google-btn {
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
}

.local-auth-form button {
  margin-top: 4px;
  background: linear-gradient(135deg, #5b2ee5, #886fff);
  color: #fff;
  box-shadow: 0 18px 40px rgba(91,46,229,.24);
}

.local-google-btn {
  width: 100%;
  background: #fff;
  color: #24194d;
  border: 1px solid rgba(91,46,229,.16);
}

.local-google-btn strong {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #f0ebff;
  color: #5b2ee5;
}

.local-auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  margin: 18px 0;
  color: #8b84a1;
  font-size: 13px;
  font-weight: 900;
}

.local-auth-divider::before {
  content: "";
  width: 100%;
  height: 1px;
  background: rgba(91,46,229,.14);
  position: absolute;
}

.local-auth-divider span {
  position: relative;
  background: rgba(255,255,255,.95);
  padding: 0 12px;
}

.local-auth-switch {
  margin: 20px 0 0;
  text-align: center;
  color: #665d81;
  font-weight: 800;
}

.local-auth-switch a {
  color: #5b2ee5;
  font-weight: 1000;
  text-decoration: none;
}

.local-auth-side {
  min-height: 520px;
  border-radius: 46px;
  padding: clamp(34px, 5vw, 70px);
  background:
    radial-gradient(circle at top right, rgba(255,227,108,.26), transparent 34%),
    linear-gradient(135deg, #24194d, #5b2ee5);
  color: #fff;
  display: grid;
  align-content: center;
  box-shadow: 0 38px 100px rgba(36,25,77,.22);
}

.local-auth-bubble {
  width: 96px;
  height: 96px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  font-size: 46px;
  margin-bottom: 28px;
}

.local-auth-side h2 {
  margin: 0 0 16px;
  font-size: clamp(48px, 6vw, 88px);
  line-height: .86;
  letter-spacing: -.08em;
}

.local-auth-side p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .local-auth-shell {
    grid-template-columns: 1fr;
  }

  .local-auth-side {
    min-height: auto;
    order: -1;
  }
}

@media (max-width: 520px) {
  .local-auth-shell {
    width: min(100% - 20px, 1160px);
    padding: 18px 0;
  }

  .local-auth-card {
    border-radius: 26px;
    padding: 20px;
  }

  .local-auth-side {
    display: none;
  }
}
