body.auth-page {
  font-family: "PPNeueMachina", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  background: transparent;
  color: #f0f0f0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  animation: authFadeIn 0.45s ease-out both;
}

body.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--bg-base, #241f23);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='650' viewBox='0 0 440 650'%3E%3Cg fill='%23FDF6FC' fill-opacity='0.045' font-family='YETEST,Georgia,serif' font-size='136' font-style='italic'%3E%3Ctext x='88' y='218' transform='rotate(-24 88 218)'%3ELC%3C/text%3E%3Ctext x='240' y='522' transform='rotate(-24 240 522)'%3ELC%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 440px 650px;
  background-position: 22px 14px;
  pointer-events: none;
  z-index: -2;
}

body.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1180px 1180px at -14% 86%, rgba(239, 97, 121, 0.34), transparent 72%),
    radial-gradient(1120px 1120px at 109% 12%, rgba(239, 97, 121, 0.34), transparent 70%);
  filter: blur(14px);
  transform: none;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

body.auth-page,
body.auth-page a,
body.auth-page input,
body.auth-page button,
body.auth-page h1,
body.auth-page h2,
body.auth-page h3,
body.auth-page h4,
body.auth-page h5,
body.auth-page h6,
body.auth-page p,
body.auth-page span,
body.auth-page label {
  font-family: "PPNeueMachina", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page .fa,
.auth-page .fas,
.auth-page .far,
.auth-page .fal,
.auth-page .fab,
.auth-page [class^="fa-"],
.auth-page [class*=" fa-"] {
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
}

.auth-page .header {
  background-color: transparent;
  padding: 14px 0 0;
  animation: authHeaderDrop 0.5s ease-out both;
}

.auth-page .header-shell {
  width: 100%;
  min-height: 74px;
  padding: 12px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 16, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-page .header .logo h1 {
  margin: 0;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.auth-page .header .logo h1 .logo-main {
  color: #ffffff;
  font-weight: 400;
}

.auth-page .header .logo h1 .logo-dev {
  color: #D7A8CD;
  font-weight: 400;
}

.auth-page .header-shell .navmenu {
  margin: 0 auto;
  flex: 1;
  display: flex;
  justify-content: center;
}

.auth-page .header-shell .navmenu ul {
  gap: 18px;
  justify-content: center;
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.auth-page .header-shell .navmenu a,
.auth-page .header-shell .navmenu a:focus {
  padding: 8px 6px;
  border-radius: 10px;
  color: #f8f5fb;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.auth-page .header-shell .navmenu li:hover > a,
.auth-page .header-shell .navmenu .active,
.auth-page .header-shell .navmenu .active:focus {
  color: #ffffff;
  background: transparent;
}

.auth-page .header-shell .navmenu .nav-icon {
  margin-right: 6px;
  font-size: 12px;
  line-height: 1;
}

.auth-page .header-shell .logo {
  margin-right: 8px;
}

.auth-page .header-shell .logo img {
  max-height: 24px;
  width: auto;
}

.auth-page .header-shell .logo h1 {
  font-size: 15px;
  margin-left: 10px;
}

.auth-page .header-actions {
  margin-left: 14px;
  gap: 10px;
}

.auth-page .header-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f5f0f8;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: 0.25s ease;
  text-decoration: none;
}

.auth-page .header-btn-login {
  background: linear-gradient(90deg, rgba(239, 97, 121, 0.05) 0%, rgba(23, 24, 26, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.01);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
  min-width: 112px;
}

.auth-page .header-btn-register {
  border: 1px solid transparent;
  background:
    linear-gradient(90deg, #EFA9E0 0%, #896180 100%) padding-box,
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) border-box;
  box-shadow: none;
  min-width: 158px;
}

.auth-layout {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 18px 20px;
}

.auth-page .form {
  position: static;
  max-width: 550px;
  width: 100%;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(253, 246, 252, 0.1);
  background: linear-gradient(180deg, rgba(23, 24, 26, 0.84) 0%, rgba(23, 24, 26, 0.72) 100%);
  box-shadow: inset 0 0 0 1px rgba(253, 246, 252, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: authCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-page .field {
  opacity: 0;
  transform: translateY(8px);
  animation: authFieldIn 0.4s ease-out forwards;
}

.auth-page form .field:nth-of-type(1) { animation-delay: 0.14s; }
.auth-page form .field:nth-of-type(2) { animation-delay: 0.2s; }
.auth-page form .field:nth-of-type(3) { animation-delay: 0.26s; }
.auth-page form .field:nth-of-type(4) { animation-delay: 0.32s; }

.auth-page .field.has-icon {
  position: relative;
}

.auth-page .field.has-icon .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  pointer-events: none;
}

.auth-page .field.has-icon input {
  padding-left: 40px;
}

.auth-page .field.has-icon input:focus + .field-icon,
.auth-page .field.has-icon:focus-within .field-icon {
  color: #EFA9E0;
}

.auth-page .auth-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.auth-page .auth-link {
  margin: 0;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  color: #f5f0f8 !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: none;
}

.auth-page .auth-submit.btn-global {
  margin: 0;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  color: #f5f0f8 !important;
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  transition: none;
}

.auth-page .auth-link:hover,
.auth-page .auth-submit.btn-global:hover {
  transform: none;
  filter: none;
  opacity: 1;
}

.auth-page .form-content .auth-link:hover {
  opacity: 1 !important;
}

.auth-page .titleText {
  font-weight: 400;
}

.auth-page .field input {
  background: linear-gradient(180deg, rgba(23, 24, 26, 0.84) 0%, rgba(23, 24, 26, 0.72) 100%);
  border: 1px solid rgba(253, 246, 252, 0.1);
  color: #f0edf2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-page .field input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.auth-page .field input:-webkit-autofill,
.auth-page .field input:-webkit-autofill:hover,
.auth-page .field input:-webkit-autofill:focus,
.auth-page .field input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px rgba(10, 8, 12, 0.62) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(10, 8, 12, 0.62) inset !important;
  transition: background-color 99999s ease-in-out 0s;
}

@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes authHeaderDrop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes authFieldIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  .auth-page .header-shell .navmenu {
    display: none;
  }
}

body.auth-page::before {
  background-color: #17181a !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='650' viewBox='0 0 440 650'%3E%3Cg fill='%23FDF6FC' fill-opacity='0.045' font-family='YETEST,Georgia,serif' font-size='136' font-style='italic'%3E%3Ctext x='88' y='218' transform='rotate(-24 88 218)'%3ELC%3C/text%3E%3Ctext x='240' y='522' transform='rotate(-24 240 522)'%3ELC%3C/text%3E%3C/g%3E%3C/svg%3E") !important;
}

body.auth-page::after {
  background:
    radial-gradient(1180px 1180px at -14% 86%, rgba(237, 69, 97, 0.28), transparent 72%),
    radial-gradient(1120px 1120px at 109% 12%, rgba(237, 69, 97, 0.22), transparent 70%) !important;
}

.auth-page .header-shell,
.auth-page .form,
.auth-page .field input {
  background: linear-gradient(180deg, rgba(23, 24, 26, 0.86) 0%, rgba(17, 18, 20, 0.82) 100%) !important;
  border-color: rgba(255, 214, 214, 0.12) !important;
}

.auth-page .header .logo h1 .logo-dev,
.auth-page .field.has-icon input:focus + .field-icon,
.auth-page .field.has-icon:focus-within .field-icon {
  color: #ed4561 !important;
}

.auth-page .header-btn-login {
  background: linear-gradient(180deg, rgba(237, 69, 97, 0.06) 0%, rgba(23, 24, 26, 0.1) 100%) !important;
  border-color: rgba(255, 214, 214, 0.08) !important;
}

.auth-page .header-btn-register {
  background:
    linear-gradient(180deg, #ed4561 0%, #ef6179 100%) padding-box,
    linear-gradient(rgba(255, 214, 214, 0.24), rgba(255, 214, 214, 0.24)) border-box !important;
}
