body.auth-screen-mode {
  overflow: hidden;
  background: #062f3b !important;
}

body.auth-screen-mode .topbar {
  display: none !important;
}

body.auth-screen-mode .layout {
  display: block !important;
  min-height: 100vh !important;
}

body.auth-screen-mode .sidebar {
  display: none !important;
}

body.auth-screen-mode .content {
  padding: 0 !important;
  min-height: 100vh !important;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 13%, rgba(22, 210, 151, 0.18), transparent 12%),
    radial-gradient(circle at 20% 76%, rgba(255, 255, 255, 0.09), transparent 20%),
    linear-gradient(180deg, #063949 0%, #052f3d 46%, #073342 100%);
  color: #ffffff;
}

.auth-brand {
  position: absolute;
  z-index: 5;
  top: 26px;
  left: 9%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #20e891, #08b3d6);
  color: #073342;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(32, 232, 145, 0.26);
}

.auth-brand-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.auth-brand-subtitle {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.auth-language {
  position: absolute;
  z-index: 5;
  top: 31px;
  right: 9%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.auth-center {
  position: relative;
  z-index: 6;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 150px;
}

.auth-logo {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #20e891, #08b3d6);
  color: #073342;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(32, 232, 145, 0.28);
}

.auth-card {
  width: min(430px, calc(100vw - 36px));
  text-align: center;
}

.auth-card h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.auth-card p {
  margin: 0 auto 32px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.auth-form {
  width: 100%;
  display: grid;
  gap: 14px;
}

.auth-field input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

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

.auth-field input:focus {
  border-color: rgba(32, 232, 145, 0.85);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 4px rgba(32, 232, 145, 0.12);
}

.auth-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 2px 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.auth-remember {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.auth-remember input {
  width: 13px;
  min-height: 13px;
  accent-color: #20e891;
}

.auth-help-text {
  color: rgba(32, 232, 145, 0.86);
  white-space: nowrap;
}

.auth-primary-btn {
  width: 100%;
  height: 47px;
  border-radius: 13px;
  border: 0;
  background: linear-gradient(135deg, #1ff09a, #12d87f);
  color: #063342;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(18, 216, 127, 0.28);
  cursor: pointer;
}

.auth-primary-btn:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.auth-primary-btn:disabled {
  opacity: 0.66;
  cursor: not-allowed;
  transform: none;
}

.auth-link-btn {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  box-shadow: none;
}

.auth-link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.auth-message {
  min-height: 22px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-align: center;
}

.auth-message.ok {
  color: #20e891;
}

.auth-message.error {
  color: #ffb4b4;
}

.auth-message.muted {
  color: rgba(255, 255, 255, 0.72);
}

.auth-stars span {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.auth-stars span:nth-child(2n) {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.24);
  border: 0;
}

.auth-stars span:nth-child(3n)::before {
  content: "+";
  position: absolute;
  left: -2px;
  top: -10px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 16px;
  font-weight: 300;
}

.auth-wave {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -90px;
  height: 230px;
  border-radius: 50% 50% 0 0;
  transform: rotate(-2deg);
}

.auth-wave-1 {
  z-index: 1;
  bottom: 46px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-wave-2 {
  z-index: 2;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(3deg);
}

.auth-wave-3 {
  z-index: 3;
  bottom: -70px;
  height: 190px;
  background: #f4f5fb;
  transform: rotate(1deg);
}

.auth-footer {
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  color: rgba(7, 51, 66, 0.36);
  font-size: 11px;
  font-weight: 800;
}

/* Register tooltip */
.tooltip-field {
  position: relative;
}

.tooltip-field::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: min(360px, calc(100vw - 40px));
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(6, 20, 45, 0.96);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  white-space: normal;
}

.tooltip-field::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  border-width: 7px 7px 0 7px;
  border-style: solid;
  border-color: rgba(6, 20, 45, 0.96) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 51;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.tooltip-field:hover::after,
.tooltip-field:focus-within::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-field:hover::before,
.tooltip-field:focus-within::before {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 720px) {
  body.auth-screen-mode {
    overflow: auto;
  }

  .auth-brand {
    left: 20px;
    top: 18px;
  }

  .auth-language {
    right: 20px;
    top: 24px;
  }

  .auth-brand-subtitle {
    display: none;
  }

  .auth-center {
    min-height: 84vh;
    padding: 96px 18px 150px;
  }

  .auth-card h2 {
    font-size: 30px;
  }

  .auth-meta-row {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .auth-help-text {
    white-space: normal;
  }

  .auth-wave {
    height: 170px;
  }

  .tooltip-field::after {
    left: 0;
    right: 0;
    transform: translateY(4px);
    width: auto;
    max-width: none;
  }

  .tooltip-field:hover::after,
  .tooltip-field:focus-within::after {
    transform: translateY(0);
  }

  .tooltip-field::before {
    left: 24px;
    transform: none;
  }
}
