:root {
  --navy: #1b3654;
  --teal-dark: #0d7377;
  --teal: #14a3a0;
  --teal-mid: #1ab3b0;
  --teal-btn: #0e8c89;
  --teal-btn-hover: #0b7573;
  --ink: #1f2937;
  --muted: #9ca3af;
  --label: #6b7280;
  --field: #f3f6f8;
  --line: #e5e7eb;
}

* {
  box-sizing: border-box;
}

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

body.login-page {
  font-family: Inter, "Segoe UI", sans-serif;
  background: #fff;
  color: var(--ink);
}

.login-shell {
  min-height: 100vh;
  display: flex;
}

.login-brand {
  display: none;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  width: 58%;
  background: linear-gradient(135deg, #1b3654 0%, #0d7377 42%, #14a3a0 100%);
}

.login-brand__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.login-brand__orb--1 {
  width: 24rem;
  height: 24rem;
  top: -8rem;
  left: -8rem;
}

.login-brand__orb--2 {
  width: 20rem;
  height: 20rem;
  top: 32%;
  right: -4rem;
  background: rgba(255, 255, 255, 0.04);
}

.login-brand__orb--3 {
  width: 18rem;
  height: 18rem;
  bottom: -5rem;
  left: 25%;
  background: rgba(255, 255, 255, 0.06);
}

.login-brand__grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 50px 50px;
}

.login-brand__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 3.5rem;
}

.login-brand__logo {
  height: 64px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
}

.login-brand__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
  margin-top: 4rem;
}

.login-brand__copy h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
}

.login-brand__copy p {
  margin: 0 0 2.5rem;
  color: #c8f0ee;
  font-size: 1.05rem;
  line-height: 1.6;
}

.login-brand__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.login-brand__list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
  color: #e6fffd;
  font-size: 0.95rem;
}

.login-check {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(16, 185, 129, 0.28);
}

.login-check svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #fff;
}

.login-brand__contacts {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.8rem;
  color: #c8f0ee;
  font-size: 0.78rem;
}

.login-brand__contacts span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.login-brand__contacts svg {
  width: 0.9rem;
  height: 0.9rem;
}

.login-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 40px rgba(27, 54, 84, 0.08);
}

.login-panel__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
}

.login-card {
  width: 100%;
  max-width: 24rem;
}

.login-icon {
  position: relative;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.6rem;
  border-radius: 1rem;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(20, 163, 160, 0.28);
}

.login-icon svg {
  width: 2.15rem;
  height: 2.15rem;
  color: #fff;
}

.login-icon__ok {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.login-icon__ok svg {
  width: 0.85rem;
  height: 0.85rem;
}

.login-clinic {
  display: none;
  height: 52px;
  max-width: 180px;
  margin: 0 auto 1.2rem;
  object-fit: contain;
}

.login-clinic.is-visible {
  display: block;
}

.login-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.login-mobile-logo img {
  height: 48px;
  object-fit: contain;
}

.login-card h2 {
  margin: 0 0 0.25rem;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1f2937;
}

.login-card__sub {
  margin: 0 0 1.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-card__clinic {
  margin: -1.2rem 0 1.6rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.login-field {
  margin-bottom: 1rem;
}

.login-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label);
}

.login-input {
  position: relative;
}

.login-input i,
.login-input .login-eye {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.login-input i {
  left: 0.9rem;
  font-size: 0.9rem;
  pointer-events: none;
}

.login-input input {
  width: 100%;
  height: 48px;
  padding: 0 2.6rem 0 2.4rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--field);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: 0.15s ease;
}

.login-input input:focus {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--teal);
}

.login-eye {
  right: 0.85rem;
  left: auto;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.login-eye:hover {
  color: #4b5563;
}

#alert:empty {
  display: none;
}

#alert {
  margin-bottom: 1rem;
}

#alert .alert {
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.88rem;
}

#alert .alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

#alert .alert-info {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #0e7490;
}

.login-submit {
  width: 100%;
  margin-top: 0.5rem;
  height: 48px;
  border: 0;
  border-radius: 0.6rem;
  background: var(--teal-btn);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-submit:hover {
  background: var(--teal-btn-hover);
}

.login-copy {
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 992px) {
  .login-brand {
    display: flex;
  }

  .login-panel {
    width: 42%;
  }

  .login-mobile-logo {
    display: none;
  }
}

@media (max-width: 991px) {
  .login-panel__body {
    padding: 2rem 1.25rem 1rem;
  }
}
