:root {
  --ink: #243044;
  --green: #1e56a8;
  --green-2: #2f74d0;
  --ice: #eef4fa;
  --mint: #f5f9fc;
  --rx: #c23b2e;
  --line: #d5e2ee;
  --muted: #66788a;
  --danger: #b42318;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 15px/1.45 "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.shell {
  position: relative;
  min-height: 100%;
  min-height: 100dvh;
  background: #eef2f5;
}

.pharm-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.studio-left {
  margin-top: 22px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.studio-left span {
  color: #7a8a99;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: rise .7s ease both;
}

.studio-left strong {
  font-size: 18px;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #1e56a8 0%, #4aa3d8 45%, #1e56a8 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 3.2s linear infinite;
}

.studio-left a {
  width: max-content;
  color: #2f74d0;
  font-size: 13px;
  text-decoration: none;
}

.studio-left a:hover { text-decoration: underline; }

.panel {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 20px;
  background: none;
}

.login-card {
  width: min(100%, 420px);
  padding: 32px 28px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 48px rgba(36, 64, 96, .16);
}

.rx {
  position: relative;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.seal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--green-2), var(--green));
  font: 700 13px/1 Georgia, serif;
  letter-spacing: .04em;
  animation: seal 3.6s ease-in-out infinite;
}

.brand strong { display: block; font-size: 16px; color: var(--ink); }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rx h2 {
  margin: 0 0 4px;
  font: 700 34px/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
  color: var(--green);
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.field { margin-bottom: 14px; }
.lbl {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #3d4d5c;
}

.control { position: relative; }
.control input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f7fa;
  font: inherit;
  outline: none;
}
#Password { padding-right: 58px; }
.control input:focus {
  background: #fff;
  border-color: rgba(30, 86, 168, .45);
  box-shadow: 0 0 0 3px rgba(47, 116, 208, .16);
}

.ghost {
  position: absolute;
  right: 0;
  top: 6px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #66788a;
  font: 650 12px/1 "Segoe UI", sans-serif;
  cursor: pointer;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.check input { accent-color: var(--green); }

.submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f74d0 0%, #1e56a8 62%, #173f7c 100%);
  color: #fff;
  font: 650 15px/1 "Segoe UI", sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(30, 86, 168, .24);
}
.submit:hover { filter: brightness(1.08); }
.submit[disabled] { opacity: .7; cursor: wait; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes seal {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30, 86, 168, .18); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(30, 86, 168, 0); }
}

.validation-summary-valid,
.field-validation-valid,
.alert:empty,
.hint:empty { display: none; }
.alert, .hint, .caps { color: var(--danger); font-size: 12.5px; }
.hint, .caps { margin: 6px 0 0; }
.login-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #f3c4c4;
  border-radius: 10px;
  background: #fdecec;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.login-alert[hidden] { display: none !important; }
.alert ul { margin: 0; padding-left: 18px; }

@media (max-width: 900px) {
  .panel { padding: 20px 16px; }
  .login-card { padding: 24px 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-left, .studio-left span, .studio-left strong, .seal, .rx {
    animation: none;
    transform: none;
  }
  .studio-left strong { color: #1e56a8; background: none; }
}
