/*
 * Login screen (login.html and the logged-out state of index.html).
 * Everything is scoped under .login-modern so the legacy .login-content rules
 * from app.min.1.css (the cyan half-page band, the floating arrow button)
 * don't reach it.
 */
.login-modern {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 24px 16px;
  background: radial-gradient(
      circle at 15% 10%,
      rgba(76, 224, 209, 0.16),
      transparent 45%
    ),
    radial-gradient(circle at 85% 90%, rgba(103, 80, 164, 0.1), transparent 45%),
    #f7f8fa;
  font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1d1b20;
  text-align: left;
}

.login-modern * {
  box-sizing: border-box;
}

.login-modern .lm-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.login-modern .lm-card {
  width: 100%;
  max-width: 400px;
  padding: 40px 36px 32px;
  background: #fff;
  border: 1px solid #e2e4e9;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04),
    0 8px 24px rgba(16, 24, 40, 0.06);
}

.login-modern .lm-logo {
  display: block;
  width: 148px;
  max-width: 100%;
  margin: 0 auto 28px;
}

.login-modern .lm-title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  color: #1d1b20;
  text-align: center;
}

/* Customer login adds a hint paragraph after the logo (login.js). */
.login-modern .lm-card > p {
  margin: 0 0 20px !important;
  font-size: 14px !important;
  line-height: 20px;
  text-align: center;
  color: #5f6368 !important;
}

.login-modern .lm-field {
  margin-bottom: 16px;
}

.login-modern .lm-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #49454f;
}

.login-modern .lm-field input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
  color: #1d1b20;
  background: #fff;
  border: 1px solid #c9ccd3;
  border-radius: 12px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-modern .lm-field input::placeholder {
  color: #9aa0a6;
}

.login-modern .lm-field input:focus {
  border-color: #1fb5a6;
  box-shadow: 0 0 0 3px rgba(31, 181, 166, 0.18);
}

.login-modern .lm-forgot {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 24px;
}

.login-modern a {
  color: #138a7e;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

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

.login-modern .lm-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 24px;
  background: #1fb5a6;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.login-modern .lm-submit:hover {
  background: #17a294;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.18);
}

.login-modern .lm-submit:focus-visible {
  outline: 3px solid rgba(31, 181, 166, 0.35);
  outline-offset: 2px;
}

.login-modern .lm-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  margin-top: 20px;
}

.login-modern .lm-legal a {
  color: #5f6368;
  font-size: 12px;
  font-weight: 400;
}

.login-modern .lm-legal span {
  color: #5f6368;
  font-size: 12px;
}

.login-modern #chrome_msg {
  margin-top: 16px;
  font-size: 12px;
  line-height: 18px;
  color: #5f6368;
  text-align: center;
}

.login-modern #chrome_msg a {
  font-size: 12px;
}

.login-modern .lm-demo {
  margin-top: 20px;
  font-size: 14px;
  color: #49454f;
  text-align: center;
}

.login-modern .lm-demo a {
  font-size: 14px;
}

.login-modern .lm-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  font-size: 11px;
  line-height: 16px;
  color: #80868b;
  text-align: center;
}

.login-modern .lm-footer p {
  margin: 0;
  font-size: 11px;
}

.login-modern .lm-footer a {
  font-size: 11px;
  font-weight: 400;
  color: #5f6368;
  text-decoration: underline;
}

.login-modern .lm-hipaa {
  width: 46px;
  height: auto;
  filter: brightness(0);
  opacity: 0.35;
}

@media (max-width: 480px) {
  .login-modern .lm-card {
    padding: 32px 20px 24px;
    border-radius: 20px;
  }
}
