body.auth-dashboard {
  min-height: 100vh;
  overflow-x: hidden;
}

body.auth-dashboard header {
  width: min(1060px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

body.auth-dashboard header h2 {
  margin: 0;
  line-height: 1;
}

body.auth-dashboard header h2 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid rgba(195, 112, 142, 0.3);
  background: rgba(17, 12, 20, 0.8);
}

body.auth-dashboard header h2 img {
  height: 48px;
  width: auto;
}

body.auth-dashboard header nav {
  gap: 8px;
}

body.auth-dashboard .auth-main {
  position: relative;
  z-index: 2;
  padding: 26px 0 52px;
}

body.auth-dashboard #login.auth-stage {
  width: min(1060px, calc(100% - 28px));
  margin: 24px auto 0;
  min-height: calc(100vh - 246px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(350px, 430px);
  gap: 18px;
  align-items: center;
}

body.auth-dashboard .auth-panel {
  border-radius: 20px;
  border: 1px solid rgba(195, 112, 142, 0.28);
  background: linear-gradient(162deg, rgba(20, 14, 23, 0.92), rgba(11, 9, 15, 0.96));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

body.auth-dashboard .auth-panel-info,
body.auth-dashboard .auth-panel-form {
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: start;
}

body.auth-dashboard .auth-panel-info {
  background: linear-gradient(162deg, rgba(26, 17, 28, 0.92), rgba(12, 9, 16, 0.96));
}

body.auth-dashboard .auth-panel-form {
  background: linear-gradient(162deg, rgba(20, 14, 23, 0.92), rgba(11, 9, 15, 0.96));
}

body.auth-dashboard .auth-panel-info .auth-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(195, 112, 142, 0.34);
  background: rgba(55, 28, 42, 0.42);
  color: #f5cadc;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

body.auth-dashboard .auth-panel-info h1 {
  margin: 0;
  color: #f7edf2;
  font-size: clamp(1.75rem, 2.35vw, 2.35rem);
  line-height: 1.14;
  font-weight: 600;
}

body.auth-dashboard .auth-panel-info .auth-copy {
  margin: 0;
  color: #cdbfc7;
  line-height: 1.6;
  font-size: 0.97rem;
  max-width: 44ch;
}

body.auth-dashboard .auth-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.auth-dashboard .auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(195, 112, 142, 0.26);
  background: rgba(47, 25, 36, 0.42);
  color: #e8dee3;
  font-size: 0.84rem;
  line-height: 1.32;
}

body.auth-dashboard .auth-chip i {
  color: #f0b3ce;
}

body.auth-dashboard .auth-panel-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #c6afbb;
  font-size: 0.9rem;
}

body.auth-dashboard .auth-inline-link {
  color: #ffd9e8;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 217, 232, 0.46);
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.auth-dashboard .auth-inline-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
}

body.auth-dashboard .auth-panel-form .menu-header {
  margin-bottom: 2px;
}

body.auth-dashboard .auth-panel-form .menu-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(195, 112, 142, 0.28);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
}

body.auth-dashboard .auth-panel-form h2 {
  margin: 2px 0 0;
  color: #f8edf3;
  font-size: 1.32rem;
  line-height: 1.2;
}

body.auth-dashboard .auth-panel-form .auth-form-caption {
  margin: 0 0 4px;
  color: #bea8b4;
  font-size: 0.9rem;
}

body.auth-dashboard #login form {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 12px;
}

body.auth-dashboard .auth-floating-field {
  --tsumi-floating-offset: 14px;
  --tsumi-floating-control-height: 54px;
  position: relative;
  width: 100%;
  min-width: 0;
  padding-top: var(--tsumi-floating-offset);
}

body.auth-dashboard .auth-floating-field > input,
body.auth-dashboard .auth-floating-field > select,
body.auth-dashboard .auth-floating-field > textarea {
  min-height: var(--tsumi-floating-control-height);
  padding-top: 20px;
  padding-bottom: 10px;
}

body.auth-dashboard .auth-floating-field > input::placeholder,
body.auth-dashboard .auth-floating-field > textarea::placeholder {
  color: transparent;
}

body.auth-dashboard .auth-floating-field > .auth-floating-label {
  position: absolute;
  left: 14px;
  top: calc(var(--tsumi-floating-offset) + (var(--tsumi-floating-control-height) / 2));
  margin: 0;
  font-size: 0.86rem;
  line-height: 1;
  color: #ab969f;
  pointer-events: none;
  z-index: 2;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  transform: translateY(-50%);
  transform-origin: left center;
  transition: top 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), font-size 0.24s ease, color 0.24s ease, opacity 0.24s ease, padding 0.2s ease, background-color 0.2s ease;
  opacity: 0.9;
}

body.auth-dashboard .auth-floating-field:focus-within > .auth-floating-label,
body.auth-dashboard .auth-floating-field > input:not(:placeholder-shown) + .auth-floating-label,
body.auth-dashboard .auth-floating-field > textarea:not(:placeholder-shown) + .auth-floating-label,
body.auth-dashboard .auth-floating-field > input:-webkit-autofill + .auth-floating-label,
body.auth-dashboard .auth-floating-field:has(> select:focus) > .auth-floating-label,
body.auth-dashboard .auth-floating-field:has(> select option:checked:not([value=""])) > .auth-floating-label,
body.auth-dashboard .auth-floating-field:has(> input[type="date"]:valid) > .auth-floating-label {
  top: 6px;
  transform: translateY(0);
  font-size: 11px;
  color: #e6ccd8;
  padding: 0 6px;
  background: rgba(15, 12, 19, 0.94);
  opacity: 1;
}

body.auth-dashboard .auth-floating-field:has(> select) > .auth-floating-label,
body.auth-dashboard .auth-floating-field:has(> input[type="date"]) > .auth-floating-label {
  top: 6px;
  transform: translateY(0);
  font-size: 11px;
  color: #e6ccd8;
  padding: 0 6px;
  background: rgba(15, 12, 19, 0.94);
  opacity: 1;
}

body.auth-dashboard #login input,
body.auth-dashboard #login select {
  width: 100%;
  min-height: 54px;
  border-radius: 11px;
  border: 1px solid rgba(195, 112, 142, 0.28);
  background: rgba(15, 12, 19, 0.9);
  color: #f5eef1;
  font-size: 0.94rem;
  padding-left: 14px;
  padding-right: 14px;
}

body.auth-dashboard #login input::placeholder {
  color: #998892;
}

body.auth-dashboard #login .auth-floating-field > input::placeholder,
body.auth-dashboard #login .auth-floating-field > textarea::placeholder {
  color: transparent;
}

body.auth-dashboard #login input:focus,
body.auth-dashboard #login select:focus {
  border-color: rgba(226, 154, 182, 0.76);
  box-shadow: 0 0 0 2px rgba(195, 112, 142, 0.2);
  background: rgba(20, 15, 24, 0.95);
}

body.auth-dashboard #login button {
  margin-top: 2px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(233, 193, 213, 0.58);
  border-radius: 10px;
  background: rgba(22, 16, 26, 0.95);
  color: #f4e9ef;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.16s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 1px rgba(233, 193, 213, 0.08);
}

body.auth-dashboard #login button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 9px;
  opacity: 0.95;
  background: linear-gradient(180deg, #f3c8dd, #c97599);
  transition: width 0.22s ease, opacity 0.22s ease;
}

body.auth-dashboard #login button:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 217, 230, 0.84);
  background: rgba(30, 22, 35, 0.96);
  box-shadow:
    0 0 0 1px rgba(245, 217, 230, 0.22),
    0 0 18px rgba(214, 122, 160, 0.28);
}

body.auth-dashboard #login button:hover::before {
  width: 100%;
  opacity: 0.32;
}

body.auth-dashboard #login button:active {
  transform: none;
}

body.auth-dashboard .login-status {
  margin-top: 4px;
  min-height: 22px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  color: #c8bcc3;
  background: rgba(8, 7, 10, 0.34);
}

body.auth-dashboard .login-status.success {
  color: #9fe0c5;
  border-color: rgba(118, 209, 174, 0.38);
  background: rgba(20, 54, 44, 0.34);
}

body.auth-dashboard .login-status.warning {
  color: #f0d59e;
  border-color: rgba(240, 213, 158, 0.34);
  background: rgba(67, 52, 23, 0.34);
}

body.auth-dashboard .login-status.error {
  color: #efb4be;
  border-color: rgba(224, 122, 142, 0.34);
  background: rgba(72, 27, 39, 0.34);
}

body.auth-dashboard .auth-aux-link {
  margin: 2px 0 0;
  color: #ac99a4;
  font-size: 0.84rem;
  line-height: 1.5;
}

body.auth-dashboard .auth-aux-link a {
  color: #dcbcc9;
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 188, 201, 0.4);
}

body.auth-dashboard .auth-aux-link a:hover {
  color: #f7e8ef;
  border-color: rgba(247, 232, 239, 0.72);
}

body.auth-dashboard-login .auth-panel,
body.auth-dashboard-login .auth-panel-info {
  border-color: rgba(211, 138, 170, 0.34);
}

body.auth-dashboard-register .auth-panel,
body.auth-dashboard-register .auth-panel-info {
  border-color: rgba(195, 112, 142, 0.36);
}

@media (max-width: 980px) {
  body.auth-dashboard #login.auth-stage {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 12px;
    align-items: start;
  }

  body.auth-dashboard .auth-panel-form {
    order: 1;
  }

  body.auth-dashboard .auth-panel-info {
    order: 2;
  }
}

@media (max-width: 680px) {
  body.auth-dashboard header {
    width: calc(100% - 22px);
    margin-top: 10px;
  }

  body.auth-dashboard header h2 img {
    height: 52px;
  }

  body.auth-dashboard #login.auth-stage {
    width: calc(100% - 22px);
    margin-top: 10px;
    gap: 12px;
    min-height: 0;
  }

  body.auth-dashboard .auth-panel-info,
  body.auth-dashboard .auth-panel-form {
    padding: 18px;
    border-radius: 16px;
  }

  body.auth-dashboard .auth-chip-grid {
    grid-template-columns: 1fr;
  }
}
