/* Secure login — medical-white glassmorphism */
.auth-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  background: #f8fafc;
}

.auth-login {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  box-sizing: border-box;
}

.auth-login__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(148, 163, 184, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 90%, rgba(100, 116, 139, 0.12), transparent 50%),
    linear-gradient(165deg, #f8fafc 0%, #f1f5f9 45%, #e2e8f0 100%);
  pointer-events: none;
}

.auth-login__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 4px 24px rgba(15, 23, 42, 0.06),
    0 1px 3px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-login__brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-login__logo {
  display: inline-flex;
  margin-bottom: 1rem;
}

.auth-login__logo svg,
.auth-login__logo-img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.auth-login__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.auth-login__subtitle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #64748b;
}

.auth-login__alert {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  font-size: 0.875rem;
  line-height: 1.4;
}

.auth-login__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #475569;
}

.auth-field__control {
  position: relative;
  display: flex;
  align-items: stretch;
}

.auth-field__icon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.auth-field__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-field__input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.7rem 0.85rem 0.7rem 2.75rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.35;
  color: #0f172a;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.auth-field__input--password {
  padding-right: 2.75rem;
}

.auth-field__input::placeholder {
  color: #94a3b8;
}

.auth-field__input:hover {
  border-color: rgba(100, 116, 139, 0.55);
}

.auth-field__input:focus {
  outline: none;
  border-color: #475569;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.18);
}

.auth-field:focus-within .auth-field__icon {
  color: #475569;
}

.auth-field--error .auth-field__input {
  border-color: rgba(239, 68, 68, 0.55);
}

.auth-field--error .auth-field__input:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.auth-field__error {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #b91c1c;
}

.auth-field__toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-field__toggle:hover {
  color: #475569;
}

.auth-field__toggle:focus-visible {
  outline: 2px solid #475569;
  outline-offset: -2px;
}

.auth-field__toggle-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-login__options {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: -0.25rem;
}

.auth-login__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #475569;
  user-select: none;
}

.auth-login__remember input {
  width: 1rem;
  height: 1rem;
  accent-color: #475569;
  cursor: pointer;
}

.auth-login__submit {
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(51, 65, 85, 0.25);
}

.auth-login__submit:hover {
  opacity: 0.94;
  transform: translateZ(0) scale(1.015);
  box-shadow: 0 4px 14px rgba(51, 65, 85, 0.28);
}

.auth-login__submit:active {
  transform: translateZ(0) scale(0.99);
  opacity: 0.9;
}

.auth-login__submit:focus-visible {
  outline: 2px solid #475569;
  outline-offset: 2px;
}

.auth-login__footer {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.auth-login-page--rtl .auth-field__icon {
  left: auto;
  right: 0;
}

.auth-login-page--rtl .auth-field__input {
  padding: 0.7rem 2.75rem 0.7rem 0.85rem;
}

.auth-login-page--rtl .auth-field__input--password {
  padding-left: 2.75rem;
}

.auth-login-page--rtl .auth-field__toggle {
  right: auto;
  left: 0;
  border-radius: 10px 0 0 10px;
}

@media (max-width: 480px) {
  .auth-login__card {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-field__input,
  .auth-field__toggle,
  .auth-login__submit,
  .auth-field__icon {
    transition: none;
  }

  .auth-login__submit:hover {
    transform: none;
  }
}
