* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 50% 20%, #232733 0%, #0d0e12 100%);
  color: #dbdee1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background-color: #1e1f22;
  border: 1px solid #2b2d31;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 100px rgba(88, 101, 242, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5865F2, #57F287);
}

.discord-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: #5865F2;
  color: #ffffff;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

.discord-icon {
  width: 36px;
  height: 36px;
}

h1 {
  color: #f2f3f5;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.subtitle {
  color: #949ba4;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.permission-preview {
  background-color: #111214;
  border: 1px solid #2b2d31;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #dbdee1;
}

.permission-item code {
  background: rgba(88, 101, 242, 0.15);
  color: #8591f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.check-icon {
  width: 16px;
  height: 16px;
  color: #57F287;
  flex-shrink: 0;
}

.btn-verify {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: #5865F2;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
  cursor: pointer;
  border: none;
}

.btn-verify:hover {
  background-color: #4752C4;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.45);
}

.btn-verify:active {
  transform: translateY(0);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.warning-box {
  background-color: rgba(240, 178, 50, 0.1);
  border: 1px solid rgba(240, 178, 50, 0.3);
  color: #f0b232;
  border-radius: 8px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.4;
}

.warning-box code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 4px;
}

.footer-note {
  margin-top: 20px;
  font-size: 12px;
  color: #80848e;
}

/* Success Card */
.success-card::before {
  background: #57F287;
}

.success-icon-wrapper {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #57F287;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #57F287;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #57F287;
  fill: rgba(87, 242, 135, 0.1);
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.success-title {
  color: #57F287;
  font-size: 26px;
  margin-bottom: 6px;
}

.success-message {
  font-size: 16px;
  color: #f2f3f5;
  font-weight: 500;
  margin-bottom: 24px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #111214;
  border: 1px solid #2b2d31;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #57F287;
}

.user-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.user-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #949ba4;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.user-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.badge-role {
  background: rgba(87, 242, 135, 0.15);
  color: #57F287;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(87, 242, 135, 0.3);
}

.status-box {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: #949ba4;
}

/* Error Card */
.error-card::before {
  background: #ED4245;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: rgba(237, 66, 69, 0.15);
  color: #ED4245;
  border-radius: 50%;
  margin-bottom: 16px;
}

.error-badge svg {
  width: 32px;
  height: 32px;
}

.error-text {
  font-size: 14px;
  color: #dbdee1;
  line-height: 1.5;
  margin-bottom: 24px;
  word-break: break-word;
}

.btn-secondary {
  display: inline-block;
  background-color: #2b2d31;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #35373c;
}
