/* Свойзакон login1 — Чернильный кабинет */
:root {
  --ink: #0b1f33;
  --ink-2: #14324d;
  --teal: #1f7a6c;
  --teal-2: #2a9a89;
  --sand: #e8dfd2;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.72);
  --field: rgba(255, 255, 255, 0.08);
  --line: rgba(232, 223, 210, 0.22);
  --danger: #ff8f7a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
}

body.login1 {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.login1-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1000px 520px at 12% 8%, rgba(31, 122, 108, 0.38), transparent 55%),
    radial-gradient(900px 480px at 92% 12%, rgba(20, 50, 77, 0.9), transparent 50%),
    radial-gradient(700px 420px at 50% 110%, rgba(232, 223, 210, 0.12), transparent 45%),
    linear-gradient(165deg, #071522 0%, #0b1f33 42%, #123a40 100%);
}

.login1-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.35;
  pointer-events: none;
}

.login1-stage {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 32px));
  padding: 28px 0 20px;
  display: grid;
  gap: 28px;
  animation: login1-rise 0.7s ease-out both;
}

@keyframes login1-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.login1-brand {
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.login1-logo {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
  animation: login1-fade 0.9s ease-out both;
}

@keyframes login1-fade {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.login1-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: #f7f3ea;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.login1-sub {
  max-width: 28ch;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.login1-form {
  display: grid;
  gap: 14px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 31, 51, 0.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  animation: login1-rise 0.85s ease-out 0.08s both;
}

.login1-error {
  color: var(--danger);
  background: rgba(255, 143, 122, 0.12);
  border: 1px solid rgba(255, 143, 122, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.login1-field {
  display: grid;
  gap: 6px;
}

.login1-field span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sand);
}

.login1-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  padding: 13px 14px;
  font: 500 1rem/1.3 Manrope, sans-serif;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.login1-field input::placeholder {
  color: rgba(244, 241, 234, 0.35);
}

.login1-field input:focus {
  border-color: rgba(42, 154, 137, 0.8);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 3px rgba(31, 122, 108, 0.25);
}

.login1-submit {
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font: 700 1rem/1.2 Manrope, sans-serif;
  letter-spacing: 0.02em;
  color: #f7f3ea;
  cursor: pointer;
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
  box-shadow: 0 10px 24px rgba(31, 122, 108, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.login1-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.login1-submit:active {
  transform: translateY(0);
}

.login1-foot {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  animation: login1-rise 1s ease-out 0.15s both;
}

.login1-foot a {
  color: #d8c7a8;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 199, 168, 0.45);
}

.login1-foot a:hover {
  color: #f0e4cc;
  border-bottom-color: #f0e4cc;
}

@media (max-width: 480px) {
  .login1-form { padding: 18px 16px; }
  .login1-logo { height: 48px; }
}
