:root {
  --auth-surface: #ffffff;
  --auth-surface-soft: #f6f8fc;
  --auth-border: #dde3ee;
  --auth-text: #223047;
  --auth-muted: #6d7a91;
  --auth-accent: #17a2b8;
  --auth-accent-hover: #138496;
  --auth-danger: #b42318;
  --auth-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lato", Arial, sans-serif;
  color: var(--auth-text);
  background:
    linear-gradient(90deg, rgba(7, 22, 35, 0.82), rgba(7, 22, 35, 0.48)),
    image-set(
      url("/assets/images/login/login_ok.webp") type("image/webp"),
      url("/assets/images/login/login_ok.png") type("image/png")
    ) center center / cover no-repeat;
}

a {
  color: var(--auth-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: var(--auth-accent-hover);
  text-decoration: underline;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 32px;
}

.auth-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
}

.auth-brand {
  color: #fff;
  max-width: 580px;
}

.auth-logo {
  width: 156px;
  height: auto;
  margin-bottom: 26px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.28));
}

.auth-kicker {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-brand h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.auth-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.6;
}

.auth-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.auth-card-header {
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--auth-border);
  background: linear-gradient(180deg, #fff, var(--auth-surface-soft));
}

.auth-card-title {
  margin: 0;
  color: var(--auth-text);
  font-size: 24px;
  font-weight: 800;
}

.auth-card-subtitle {
  margin: 5px 0 0;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-form {
  padding: 24px 28px 26px;
}

.auth-field {
  margin-bottom: 15px;
}

.auth-label {
  display: block;
  margin-bottom: 6px;
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa8bc;
  font-size: 13px;
}

.auth-input {
  width: 100%;
  height: 42px;
  padding: 0 13px 0 38px;
  border: 1.5px solid var(--auth-border);
  border-radius: 9px;
  background: #fff;
  color: var(--auth-text);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input::placeholder {
  color: #a8b3c4;
  font-weight: 500;
}

.auth-input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.13);
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8492a8;
  cursor: pointer;
}

.auth-password-toggle:hover {
  background: var(--auth-surface-soft);
  color: var(--auth-text);
}

.auth-password .auth-input {
  padding-right: 42px;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 9px;
  background: rgba(180, 35, 24, 0.08);
  color: var(--auth-danger);
  font-size: 13px;
  line-height: 1.4;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 2px 0 18px;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--auth-accent);
}

.auth-submit {
  width: 100%;
  height: 44px;
  border: 1px solid var(--auth-accent);
  border-radius: 10px;
  background: var(--auth-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.auth-submit:hover {
  background: var(--auth-accent-hover);
  border-color: var(--auth-accent-hover);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid var(--auth-border);
  font-size: 13px;
}

.auth-version {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

@media (max-width: 900px) {
  body {
    background-position: center;
  }

  .auth-page {
    padding: 20px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .auth-brand {
    max-width: none;
  }

  .auth-brand h1 {
    font-size: 34px;
  }

  .auth-brand p {
    display: none;
  }

  .auth-logo {
    width: 132px;
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding: 14px;
  }

  .auth-card-header,
  .auth-form {
    padding-left: 20px;
    padding-right: 20px;
  }

  .auth-options,
  .auth-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
