/* Discord account verification on the creator application form. */

.discord-link-group {
  grid-column: 1 / -1;
}

.discord-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 14px 15px;
  border: 1px solid rgba(88, 101, 242, 0.28);
  border-radius: 11px;
  background:
    radial-gradient(circle at 0 50%, rgba(88, 101, 242, 0.09), transparent 42%),
    #111414;
}

.discord-link-card[data-invalid="true"] {
  border-color: rgba(255, 85, 85, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 85, 85, 0.08);
}

.discord-link-identity,
.discord-verify-intro,
.discord-account-match {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.discord-link-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(88, 101, 242, 0.42);
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.12);
  color: #8992ff;
  font-size: 1.25rem;
}

.discord-verified-icon {
  border-color: rgba(83, 221, 141, 0.45);
  background: rgba(83, 221, 141, 0.09);
  color: #53dd8d;
}

.discord-code-icon {
  color: #03fcf0;
  border-color: rgba(3, 252, 240, 0.35);
  background: rgba(3, 252, 240, 0.08);
}

.discord-link-copy,
.discord-account-copy {
  min-width: 0;
}

.discord-link-copy strong,
.discord-link-copy span,
.discord-link-copy small,
.discord-account-copy strong,
.discord-account-copy span,
.discord-account-copy small {
  display: block;
}

.discord-link-copy strong,
.discord-account-copy strong {
  color: #fff;
  font-size: 0.9rem;
}

.discord-link-copy span,
.discord-account-copy span {
  margin-top: 2px;
  color: #c7cccc;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.discord-link-copy small,
.discord-account-copy small {
  margin-top: 3px;
  color: #778181;
  font-size: 0.72rem;
}

.discord-account-copy small {
  margin-top: 7px;
  color: #03fcf0;
  font-weight: 700;
}

.discord-link-status {
  color: #53dd8d !important;
}

.discord-connect-button,
.discord-change-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(88, 101, 242, 0.55);
  border-radius: 9px;
  background: #5865f2;
  color: #fff;
  font: 700 0.78rem/1 "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

.discord-connect-button:hover,
.discord-change-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.discord-connect-button:disabled,
.discord-change-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.discord-change-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd1d1;
}

.discord-link-error {
  margin-top: 7px;
  color: #ff7777;
  font-size: 0.74rem;
}

.discord-verify-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 22px;
}

.discord-verify-controls,
.discord-verify-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.discord-verify-input {
  width: min(270px, 46vw);
  min-height: 42px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  outline: none;
  background: #0c0f0f;
  color: #fff;
  font: 600 0.86rem/1.2 "Inter", sans-serif;
}

.discord-verify-input:focus {
  border-color: rgba(88, 101, 242, 0.72);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.1);
}

.discord-code-input {
  width: 130px;
  text-align: center;
  letter-spacing: 0.16em;
  font-size: 1rem;
  font-weight: 800;
}

.discord-account-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid #5865f2;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.12);
  color: #8992ff;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.18);
}

.discord-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .discord-link-card,
  .discord-verify-card {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .discord-verify-controls,
  .discord-verify-actions {
    justify-content: stretch;
  }

  .discord-verify-input,
  .discord-connect-button,
  .discord-change-button {
    width: 100%;
  }

  .discord-code-input {
    text-align: center;
  }
}
