.cocove-auth-dialog {
  width: min(92vw, 460px);
  max-width: 460px;
  margin: auto;
  padding: 0;
  overflow: visible;
  color: #171225;
  background: transparent;
  border: 0;
}

.cocove-auth-dialog[open] {
  animation: cocove-auth-enter 180ms ease-out;
}

.cocove-auth-dialog::backdrop {
  background: rgb(10 5 23 / 72%);
  backdrop-filter: blur(5px);
}

.cocove-auth-card {
  position: relative;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgb(237 46 126 / 12%), transparent 38%),
    radial-gradient(circle at 0 100%, rgb(100 55 255 / 11%), transparent 42%),
    #fff;
  border: 1px solid rgb(109 65 196 / 16%);
  border-radius: 24px;
  box-shadow: 0 26px 80px rgb(15 5 38 / 38%);
}

.cocove-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #514760;
  font: inherit;
  cursor: pointer;
  background: #f4f1f8;
  border: 0;
  border-radius: 999px;
  transition:
    color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.cocove-auth-close:hover {
  color: #24143e;
  background: #ece6f4;
  transform: scale(1.04);
}

.cocove-auth-close:focus-visible,
.cocove-auth-input:focus-visible,
.cocove-auth-primary:focus-visible,
.cocove-auth-secondary-actions button:focus-visible {
  outline: 3px solid rgb(115 68 220 / 28%);
  outline-offset: 2px;
}

.cocove-auth-logo {
  display: block;
  width: auto;
  max-width: 176px;
  height: 54px;
  margin: 0 0 28px;
  object-fit: contain;
  object-position: left center;
}

.cocove-auth-kicker {
  margin: 0 0 7px;
  color: #7041cc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.cocove-auth-card h2 {
  margin: 0;
  color: #171225;
  font-size: clamp(1.65rem, 5vw, 2rem);
  line-height: 1.12;
}

.cocove-auth-description {
  margin: 12px 0 24px;
  color: #655d6d;
  font-size: 0.96rem;
  line-height: 1.55;
}

.cocove-auth-label {
  display: block;
  margin: 0 0 8px;
  color: #332a3c;
  font-size: 0.87rem;
  font-weight: 750;
}

.cocove-auth-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: #1b1424;
  font: inherit;
  background: #fff;
  border: 1px solid #d8d0df;
  border-radius: 13px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.cocove-auth-input:hover {
  border-color: #b8aac6;
}

.cocove-auth-input:focus {
  border-color: #7346d1;
  box-shadow: 0 0 0 4px rgb(115 70 209 / 11%);
}

.cocove-auth-code {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-align: center;
}

.cocove-auth-primary {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 20px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(100deg, #5932ba 0%, #932fb7 52%, #e34872 100%);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgb(102 48 181 / 22%);
  transition:
    filter 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.cocove-auth-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgb(102 48 181 / 29%);
}

.cocove-auth-primary:disabled,
.cocove-auth-secondary-actions button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.cocove-auth-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.cocove-auth-secondary-actions button {
  padding: 5px 0;
  color: #6842b4;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.cocove-auth-secondary-actions button:hover:not(:disabled) {
  color: #402178;
  text-decoration: underline;
}

.cocove-auth-status {
  min-height: 1.35em;
  margin: 18px 0 0;
  color: #61576b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cocove-auth-status:empty {
  min-height: 0;
  margin-top: 0;
}

.cocove-auth-status[data-tone="error"] {
  color: #b32445;
}

.cocove-auth-status[data-tone="success"] {
  color: #167348;
}

.cocove-auth-footnote {
  margin: 20px 0 0;
  padding-top: 17px;
  color: #7e7585;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: center;
  border-top: 1px solid #eee8f2;
}

@keyframes cocove-auth-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .cocove-auth-dialog {
    width: calc(100vw - 24px);
  }

  .cocove-auth-card {
    padding: 28px 22px 24px;
    border-radius: 20px;
  }

  .cocove-auth-logo {
    max-width: 150px;
    height: 48px;
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cocove-auth-dialog[open] {
    animation: none;
  }

  .cocove-auth-close,
  .cocove-auth-primary {
    transition: none;
  }
}

