/* Pure dark login — AxisOps × English Soap Company (no app.css) */

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

html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000 !important;
  color-scheme: dark;
}

body.login-body,
html:has(body.login-body) {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Bai Jamjuree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #f0f0f0;
  background: #000 !important;
  -webkit-text-size-adjust: 100%;
}

body.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  /* Soft brand glows on pure black — still clearly dark */
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(0, 229, 227, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 100%, rgba(201, 162, 39, 0.07), transparent 50%),
    #000 !important;
}

::selection {
  color: #00e5e3;
  background: #111;
}

.login-shell {
  width: 100%;
  max-width: 28rem;
}

.login-card {
  background: #0a0a0a;
  border: 1px solid #1c1c1c;
  border-radius: 18px;
  padding: 2.15rem 1.9rem 1.9rem;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.75);
}

/* Collaboration lockup: AxisOps | ESC peacock */
.login-collab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 0 0 1.55rem;
  min-height: 5.5rem;
}

.login-collab-rule {
  flex-shrink: 0;
  width: 1px;
  height: 3.9rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    #444 15%,
    #00e5e3 50%,
    #444 85%,
    transparent 100%
  );
}

.login-logo {
  display: block;
  object-fit: contain;
}

.login-logo-axis {
  width: min(168px, 42vw);
  height: auto;
  max-height: 2.85rem;
}

.login-logo-esc {
  width: auto;
  height: auto;
  max-width: min(118px, 32vw);
  max-height: 6.25rem;
  /* Logo has a black plate — blend into the card */
  background: transparent;
}

.login-title {
  margin: 0 0 1.4rem;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.login-error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #1a0a0a;
  border: 1px solid #5c2020;
  color: #ffb0b0;
  font-size: 0.88rem;
  font-weight: 550;
  text-align: center;
}

/* Phone-sized viewports only — hidden on larger screens */
.login-mobile-warn {
  display: none;
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: #1a1608;
  border: 1px solid #6b5420;
  color: #f0d78c;
  font-size: 0.86rem;
  font-weight: 550;
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .login-mobile-warn {
    display: block;
  }
}

.login-form {
  display: grid;
  gap: 0.85rem;
}

.login-form label {
  display: grid;
  gap: 0.3rem;
}

.login-form .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-form input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 0.95rem;
  border-radius: 11px;
  border: 1px solid #2a2a2a;
  background: #111 !important;
  color: #f5f5f5 !important;
  caret-color: #00e5e3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  /* Kill browser autofill light backgrounds */
  -webkit-text-fill-color: #f5f5f5;
}

.login-form input::placeholder {
  color: #666;
  -webkit-text-fill-color: #666;
  opacity: 1;
}

.login-form input:focus {
  outline: none;
  border-color: #00e5e3;
  background: #0d1414 !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 227, 0.2);
}

.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f5f5;
  caret-color: #00e5e3;
  box-shadow: 0 0 0 1000px #111 inset;
  transition: background-color 99999s ease-in-out 0s;
  border-color: #2a2a2a;
}

.login-submit {
  margin-top: 0.4rem;
  width: 100%;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  background: #00e5e3;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.08s ease;
}

.login-submit:hover {
  background: #69ffcd;
  color: #000;
}

.login-submit:active {
  transform: translateY(1px);
}

@media (max-width: 420px) {
  .login-collab {
    gap: 0.85rem;
  }

  .login-collab-rule {
    height: 3.25rem;
  }

  .login-logo-axis {
    max-height: 2.35rem;
  }

  .login-logo-esc {
    max-height: 5.25rem;
    max-width: 96px;
  }

  .login-title {
    font-size: 1.35rem;
  }
}
