/* Claude.ai-inspired login page — scoped to /login only */
.am-page-login {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background-color: #faf9f5;
  color: #141413;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.am-page-login * {
  box-sizing: border-box;
}

.tm-login-page {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
}

.am-page-login .tm-login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.am-page-login .tm-login-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.am-page-login .tm-login-bg__blob--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -6%;
  background: rgba(212, 165, 116, 0.35);
  animation: tm-bg-drift 16s ease-in-out infinite;
}

.am-page-login .tm-login-bg__blob--2 {
  width: 360px;
  height: 360px;
  bottom: -10%;
  right: -4%;
  background: rgba(20, 20, 19, 0.1);
  animation: tm-bg-drift 20s ease-in-out infinite reverse;
}

.am-page-login .tm-login-bg__blob--3 {
  width: 280px;
  height: 280px;
  top: 42%;
  right: 18%;
  background: rgba(255, 255, 255, 0.7);
  animation: tm-bg-drift 13s ease-in-out infinite 3s;
}

.am-page-login .tm-login-bg__item {
  position: absolute;
  opacity: 1;
  animation: tm-bg-float 9s ease-in-out infinite;
  will-change: transform;
}

.am-page-login .tm-login-bg__item svg {
  display: block;
  width: 100%;
  height: auto;
}

.am-page-login .tm-login-bg__item--1 {
  top: 7%;
  left: 6%;
  width: 72px;
  height: 72px;
  --tm-rot: -14deg;
  animation-duration: 10s;
}

.am-page-login .tm-login-bg__item--2 {
  top: 18%;
  right: 9%;
  width: 64px;
  height: 64px;
  --tm-rot: 8deg;
  animation-duration: 12s;
  animation-delay: -2s;
}

.am-page-login .tm-login-bg__item--3 {
  top: 62%;
  left: 4%;
  width: 88px;
  height: 59px;
  --tm-rot: 6deg;
  animation-duration: 11s;
  animation-delay: -4s;
}

.am-page-login .tm-login-bg__item--4 {
  bottom: 14%;
  right: 7%;
  width: 56px;
  height: 56px;
  --tm-rot: -8deg;
  animation-duration: 8s;
  animation-delay: -1s;
}

.am-page-login .tm-login-bg__item--5 {
  top: 38%;
  left: 11%;
  width: 44px;
  height: 44px;
  --tm-rot: 18deg;
  animation-duration: 13s;
  animation-delay: -5s;
}

.am-page-login .tm-login-bg__item--6 {
  bottom: 28%;
  left: 14%;
  width: 76px;
  height: 76px;
  --tm-rot: -6deg;
  animation-duration: 10s;
  animation-delay: -3s;
}

.am-page-login .tm-login-bg__item--7 {
  top: 8%;
  left: 42%;
  width: 40px;
  height: 40px;
  --tm-rot: 0deg;
  animation-duration: 14s;
  animation-delay: -6s;
}

.am-page-login .tm-login-bg__item--8 {
  bottom: 8%;
  left: 38%;
  width: 52px;
  height: 52px;
  --tm-rot: -12deg;
  animation-duration: 9s;
  animation-delay: -2s;
}

.am-page-login .tm-login-bg__item--9 {
  top: 72%;
  right: 16%;
  width: 48px;
  height: 48px;
  --tm-rot: 10deg;
  animation-duration: 11s;
  animation-delay: -7s;
}

.am-page-login .tm-login-bg__item--10 {
  top: 44%;
  right: 5%;
  width: 80px;
  height: 48px;
  --tm-rot: -4deg;
  animation-duration: 12s;
  animation-delay: -4s;
}

@keyframes tm-bg-float {
  0%, 100% { transform: translateY(0) rotate(var(--tm-rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--tm-rot, 0deg) + 3deg)); }
}

@keyframes tm-bg-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -16px); }
}

.tm-login-page__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
}

.tm-login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.tm-login-logo {
  display: inline-block;
  vertical-align: top;
  width: 14rem;
  max-width: 100%;
  height: auto;
}

.tm-login-heading {
  font-family: "Source Serif 4", "Tiempos Text", Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0 0 0.5rem;
  color: #141413;
}

.tm-login-subheading {
  text-align: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #6b6560;
  margin: 0 0 2rem;
}

.am-page-login .am-login-form-wrapper,
.am-page-login .am-sendpass-form-wrapper {
  margin-top: 0;
}

.am-page-login .am-form.am-auth-form {
  margin: 0;
  max-width: none;
  width: 100%;
}

.am-page-login .am-auth-form form {
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0;
}

.am-page-login .am-auth-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.am-page-login .am-auth-form legend {
  display: none;
}

.am-page-login .am-auth-form div.row {
  background: transparent;
  border: none;
  margin-bottom: 1rem;
  padding: 0;
}

.am-page-login .am-auth-form div.row.row-buttons {
  margin-bottom: 0;
  margin-top: 0.5rem;
}

.am-page-login .am-auth-form div.element-title {
  background: none;
  padding: 0;
  margin-bottom: 0.375rem;
}

.am-page-login .am-auth-form div.element-title label,
.am-page-login .am-auth-form label.element-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #141413;
  display: block;
}

.am-page-login .am-auth-form .row-login-pass .element-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.am-page-login .am-auth-form div.element {
  padding: 0;
}

.am-page-login .am-auth-form input[type="text"],
.am-page-login .am-auth-form input[type="password"],
.am-page-login .am-auth-form input[type="email"] {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid #e0dcd4;
  border-radius: 0.625rem;
  background: #fff;
  color: #141413;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none;
}

.am-page-login .am-auth-form input[type="text"]:focus,
.am-page-login .am-auth-form input[type="password"]:focus,
.am-page-login .am-auth-form input[type="email"]:focus {
  outline: none;
  border-color: #141413;
  box-shadow: 0 0 0 3px rgba(20, 20, 19, 0.08);
}

.am-page-login .am-auth-form input::placeholder {
  color: #9b9590;
}

.am-page-login .am-auth-form input[type="submit"],
.am-page-login .am-auth-form .buttonorange {
  width: 100%;
  height: 2.75rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 0.625rem;
  background: #141413;
  color: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-shadow: none;
  background-image: none;
  line-height: 1;
}

.am-page-login .am-auth-form input[type="submit"]:hover,
.am-page-login .am-auth-form .buttonorange:hover {
  background: #2a2a28;
}

.am-page-login .am-auth-form input[type="submit"]:active,
.am-page-login .am-auth-form .buttonorange:active {
  transform: scale(0.99);
}

.am-page-login .am-form-login-switch,
.am-page-login .am-form-login-switch-wrapper a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b6560;
  text-decoration: none;
}

.am-page-login .am-form-login-switch:hover,
.am-page-login .am-form-login-switch-wrapper a:hover {
  color: #141413;
  text-decoration: underline;
}

.am-page-login #am-form-login-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6b6560;
  cursor: pointer;
}

.am-page-login #am-form-login-remember input {
  width: auto;
  height: auto;
  margin: 0;
}

.tm-login-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #6b6560;
}

.tm-login-footer a {
  color: #141413;
  font-weight: 500;
  text-decoration: none;
}

.tm-login-footer a:hover {
  text-decoration: underline;
}

.tm-login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: #9b9590;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tm-login-divider::before,
.tm-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0dcd4;
}

.am-page-login .errors,
.am-page-login ul.errors {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.875rem;
  line-height: 1.45;
}

.am-page-login .errors li {
  margin: 0;
}

.am-page-login .row-login-recaptcha,
.am-page-login .row-sendpass-recaptcha {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .am-page-login .tm-login-bg__item--3,
  .am-page-login .tm-login-bg__item--6,
  .am-page-login .tm-login-bg__item--7,
  .am-page-login .tm-login-bg__item--10 {
    display: none;
  }

  .am-page-login .tm-login-bg__item--1 { top: 4%; left: 2%; width: 56px; height: 56px; }
  .am-page-login .tm-login-bg__item--2 { top: 6%; right: 3%; width: 48px; height: 48px; }
  .am-page-login .tm-login-bg__item--4 { bottom: 6%; right: 4%; width: 44px; height: 44px; }
  .am-page-login .tm-login-bg__item--5 { top: 30%; left: 3%; width: 36px; height: 36px; }
  .am-page-login .tm-login-bg__item--8 { bottom: 5%; left: 8%; width: 40px; height: 40px; }
  .am-page-login .tm-login-bg__item--9 { top: 78%; right: 6%; width: 40px; height: 40px; }
}

@media (max-width: 480px) {
  .tm-login-heading {
    font-size: 1.5rem;
  }

  .tm-login-logo {
    width: 11.5rem;
  }

  .tm-login-page {
    padding: 1.5rem 1rem;
    align-items: center;
    padding-top: 3rem;
  }

  .am-page-login .tm-login-bg__item--5,
  .am-page-login .tm-login-bg__item--8,
  .am-page-login .tm-login-bg__item--9 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-page-login .tm-login-bg__item,
  .am-page-login .tm-login-bg__blob {
    animation: none;
  }
}
