/* Washly admin sign-in page */
:root {
  --w-navy: #0E2A47;
  --w-navy-600: #17406B;
  --w-teal: #1FC7B6;
  --w-teal-600: #19B0A1;
  --w-teal-text: #0E9E91;
  --w-foam: #8FE3DA;
  --w-mist: #F5F7FA;
  --w-slate: #4A5D72;
  --w-muted: #8A99AB;
  --w-border: #E3E8EE;
  --w-danger: #D64545;
  --w-danger-tint: #FBEAEA;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body.w-login {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w-mist);
  color: var(--w-slate);
  -webkit-font-smoothing: antialiased;
}

.w-login__shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* ---------- Brand side ---------- */
.w-login__brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #0E2A47 0%, #123A60 60%, #15507A 100%);
  color: #fff;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.w-login__brand-logo {
  position: relative;
  height: 44px;
  width: auto;
  align-self: flex-start;
  z-index: 1;
}

.w-login__brand-copy {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.w-login__brand-copy h2 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.w-login__brand-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.w-login__points {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.86);
}

.w-login__points li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.w-login__points li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(31, 199, 182, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231FC7B6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.w-login__bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.w-login__bubble--1 {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(143, 227, 218, 0.30), rgba(31, 199, 182, 0.06) 70%);
}

.w-login__bubble--2 {
  width: 220px;
  height: 220px;
  right: 120px;
  top: 210px;
  border: 1.5px solid rgba(143, 227, 218, 0.28);
}

.w-login__bubble--3 {
  width: 90px;
  height: 90px;
  right: 70px;
  top: 150px;
  background: rgba(31, 199, 182, 0.35);
}

.w-login__bubble--4 {
  width: 520px;
  height: 520px;
  left: -260px;
  bottom: -300px;
  background: radial-gradient(circle at 60% 40%, rgba(31, 199, 182, 0.18), rgba(31, 199, 182, 0) 70%);
}

/* ---------- Form side ---------- */
.w-login__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--w-mist);
}

.contact-form {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--w-border);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(14, 42, 71, 0.08);
  padding: 40px;
}

.w-login__logo {
  display: none;
  height: 38px;
  width: auto;
  margin-bottom: 28px;
}

.contact-form h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--w-navy);
}

.w-login__sub {
  margin: 0 0 28px;
  font-size: 14.5px;
  color: var(--w-muted);
}

.contact-form form {
  margin: 0;
}

.contact-form label {
  display: block;
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--w-navy);
}

.contact-form input[type="text"],
.contact-form input[type="password"] {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0 0 20px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--w-navy);
  background: var(--w-mist);
  border: 1px solid var(--w-border);
  border-radius: 12px;
  outline: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="password"]:focus {
  background: #fff;
  border-color: var(--w-teal);
  box-shadow: 0 0 0 3px rgba(31, 199, 182, 0.2);
}

.contact-form input[type="submit"] {
  display: block;
  width: 100%;
  height: 52px;
  margin: 8px 0 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--w-navy);
  background: var(--w-teal);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.contact-form input[type="submit"]:hover {
  background: var(--w-teal-600);
}

.contact-form input[type="submit"]:active {
  transform: translateY(1px);
}

.contact-form input[type="submit"]:focus-visible {
  outline: 3px solid rgba(14, 42, 71, 0.35);
  outline-offset: 2px;
}

.w-login__error {
  margin: 0 0 20px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #9E2F2F;
  background: var(--w-danger-tint);
  border: 1px solid #F2C6C6;
  border-radius: 12px;
}

.w-login__error ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.w-login__error .validation-summary-valid {
  display: none;
}

.w-login__foot {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--w-muted);
}

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .w-login__shell {
    grid-template-columns: 1fr;
  }

  .w-login__brand {
    display: none;
  }

  .w-login__logo {
    display: block;
  }

  .contact-form {
    padding: 32px 24px;
  }
}

/* ---------- Demo accounts ---------- */
.w-demo {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--w-border);
}

.w-demo__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.w-demo__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w-navy);
}

.w-demo__hint {
  font-size: 12.5px;
  color: var(--w-muted);
}

.w-demo__list {
  display: flex;
  gap: 6px;
}

.w-demo__item {
  --accent: var(--w-teal);
  --accent-tint: #E9F9F7;
  --accent-text: var(--w-teal-text);
  --on-accent: var(--w-navy);
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 5px 9px 5px 5px;
  font-family: inherit;
  background: #fff;
  border: 1px solid var(--w-border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.w-demo__item--1 {
  --accent: #2F7FD1;
  --accent-tint: #E8F1FB;
  --accent-text: #2F7FD1;
  --on-accent: #fff;
}

.w-demo__item--2 {
  --accent: #E0A100;
  --accent-tint: #FDF4DC;
  --accent-text: #9A6F00;
}

.w-demo__item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(14, 42, 71, 0.08);
  transform: translateY(-1px);
}

.w-demo__item.is-active {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.w-demo__item:focus-visible {
  outline: 3px solid rgba(31, 199, 182, 0.4);
  outline-offset: 2px;
}

.w-demo__avatar {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-tint);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.w-demo__item.is-active .w-demo__avatar {
  background: var(--accent);
  color: var(--on-accent);
}

.w-demo__role {
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--w-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sign-in button pulses once after a demo account fills the form */
.contact-form input[type="submit"].is-ready {
  animation: w-ready 0.9s ease;
}

@keyframes w-ready {
  0% { box-shadow: 0 0 0 0 rgba(31, 199, 182, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(31, 199, 182, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .w-demo__item,
  .w-demo__avatar {
    transition: none;
  }

  .contact-form input[type="submit"].is-ready {
    animation: none;
  }
}
