.neygen-auth-entry {
  display: flex;
  align-items: center;
}

.neygen-auth-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: #3f6ecb;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.neygen-auth-open:hover {
  background: #2e5fc0;
  color: #fff;
  transform: translateY(-1px);
}

.neygen-auth-modal[hidden] {
  display: none;
}

.neygen-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.neygen-auth-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(8px);
}

.neygen-auth-modal__dialog {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid #e6ecfb;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.neygen-auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f3f6ff;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.neygen-auth-modal__head {
  margin-bottom: 18px;
}

.neygen-auth-modal__eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #3f6ecb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.neygen-auth-modal__head div {
  margin: 0 0 8px;
  color: #111827;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

.neygen-auth-modal__head p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.5;
}

.neygen-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  border-radius: 14px;
  background: #f3f6ff;
}

.neygen-auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #475467;
  font-weight: 800;
  cursor: pointer;
}

.neygen-auth-tabs button.is-active {
  background: #fff;
  color: #3f6ecb;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.neygen-auth-message {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8faff;
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
}

.neygen-auth-message.is-error {
  background: #fff1f1;
  color: #b42318;
}

.neygen-auth-message.is-success {
  background: #ecfdf3;
  color: #027a48;
}

.neygen-auth-form {
  display: none;
}

.neygen-auth-form.is-active {
  display: grid;
  gap: 14px;
}

.neygen-auth-form label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.neygen-auth-form label span {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.neygen-auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  outline: none;
}

.neygen-auth-form input:focus {
  border-color: #3f6ecb;
  box-shadow: 0 0 0 3px rgba(63, 110, 203, 0.12);
}

.neygen-auth-form button[type="submit"] {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: #3f6ecb;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.neygen-auth-form button[type="submit"]:hover {
  background: #2e5fc0;
}

.neygen-auth-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.neygen-auth-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8faff;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

body.neygen-auth-lock {
  overflow: hidden;
}

/**
 * Файл: media/templates/site/cassiopeia/css/neygen/auth.css
 * Блок: выпадающее меню личного кабинета Neygen.
 */

.neygen-auth-entry {
  position: relative;
}

.neygen-user-menu[hidden] {
  display: none;
}

.neygen-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10000;
  min-width: 190px;
  padding: 8px;
  border: 1px solid #e6ecfb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.neygen-user-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid #e6ecfb;
  border-top: 1px solid #e6ecfb;
  transform: rotate(45deg);
}

.neygen-user-menu a,
.neygen-user-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.neygen-user-menu a:hover,
.neygen-user-menu button:hover {
  background: #f3f6ff;
  color: #3f6ecb;
}

.neygen-user-menu form {
  margin: 0;
}

.neygen-user-menu form button {
  color: #b42318;
}

.neygen-user-menu form button:hover {
  background: #fff1f1;
  color: #b42318;
}