/* Alphamint Login — split premium desk */

:root {
  --ink: #101916;
  --ink-soft: #3a4a43;
  --muted: #667870;
  --line: #e2e9e5;
  --surface: #ffffff;
  --canvas: #f3f6f4;
  --brand: #019a76;
  --brand-soft: #e7f7f1;
  --brand-deep: #067556;
  --brand-bright: #1fc49a;
  --danger: #d64550;
  --font: "DM Sans", sans-serif;
  --heading: "Sora", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2 {
  font-family: var(--heading);
  letter-spacing: -0.04em;
  margin: 0;
}

p { margin: 0; }

.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

/* Left panel */
.login-aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 90% 10%, rgba(31, 196, 154, 0.28), transparent 58%),
    radial-gradient(ellipse 45% 40% at 10% 85%, rgba(176, 138, 62, 0.16), transparent 52%),
    linear-gradient(160deg, #055c48 0%, #078564 48%, #044d3d 100%);
}

.login-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 40% 40%, #000 10%, transparent 75%);
}

.login-brand,
.login-aside__copy,
.login-aside__foot {
  position: relative;
  z-index: 1;
}

.login-brand {
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-aside__copy {
  max-width: 30rem;
}

.login-aside__copy h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
}

.login-aside__copy > p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

.login-aside__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.login-aside__points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.login-aside__points span {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-bright);
}

.login-aside__points strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
  font-weight: 650;
}

.login-aside__points p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.login-aside__foot {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Right panel */
.login-main {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(1, 154, 118, 0.06), transparent 55%),
    var(--canvas);
}

.login-card {
  width: min(100%, 440px);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(16, 25, 22, 0.07);
  animation: cardIn 0.55s var(--ease) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.login-card__head {
  margin-bottom: 1.5rem;
}

.login-kicker {
  margin-bottom: 0.55rem;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.login-card__head h2 {
  margin-bottom: 0.45rem;
  font-size: 1.65rem;
  font-weight: 700;
}

.login-card__head p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.field__label-row label { margin-bottom: 0; }

.field__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.field__link:hover { text-decoration: underline; }

.field__control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 52px;
  padding: 0.2rem 0.85rem;
  border-radius: 14px;
  background: var(--canvas);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field__control:focus-within {
  background: #fff;
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 0 0 4px rgba(1, 154, 118, 0.12);
}

.field__control.is-invalid {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  box-shadow: 0 0 0 4px rgba(214, 69, 80, 0.1);
}

.field__control input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 0.7rem 0;
}

.field__control input::placeholder {
  color: #9aaba3;
}

.field__toggle {
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0.35rem 0.25rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.form-error {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #fff1f1;
  border: 1px solid #f3c4c8;
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 550;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(1, 154, 118, 0.28);
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
}

.login-submit:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(6, 117, 86, 0.3);
}

.login-submit.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.login-card__foot {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-card__foot a {
  color: var(--brand-deep);
  font-weight: 650;
}

.login-demo:hover { text-decoration: underline; }

.login-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(12px);
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 550;
  box-shadow: 0 14px 30px rgba(16, 25, 22, 0.2);
  opacity: 0;
  transition: 0.25s var(--ease);
  z-index: 50;
}

.login-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

  .login-aside {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .login-aside__points {
    display: none;
  }

  .login-aside__copy h1 {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
  }

  .login-aside__foot { display: none; }
}
