/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Roboto', sans-serif;
}

/* Background */
body {
  background: linear-gradient(135deg, #1e1e1e, #343434);
  color: #fff;
}

/* Container */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* Centered content */
.centered {
  text-align: center;
  padding: 20px;
}

/* Headings */
h1 {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

/* Paragraphs */
p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Small text */
.small-text {
  font-size: 0.9rem;
  margin-top: 20px;
  opacity: 0.8;
}

.small-text a {
  color: #1DB954;
  text-decoration: none;
}

.small-text a:hover {
  text-decoration: underline;
}

/* Error message */
.error-message {
  background-color: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.error-message p {
  color: #ff6b6b;
  margin-bottom: 0;
}

/* Contact message styling */
.contact-message {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.3);
  border-radius: 8px;
  font-size: 1.1rem;
}

.contact-message a {
  color: #1DB954;
  text-decoration: none;
  font-weight: bold;
}

.contact-message a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 24px;
  margin: 10px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
/* Primary button (e.g., login) */
.btn.primary {
  background-color: #1DB954;
  color: #fff;
}

.btn.primary:hover {
  background-color: #17a44d;
  transform: scale(1.05);
}

/* Secondary button (e.g., copy key) */
.btn.secondary {
  background-color: #555;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
}

.btn.secondary:hover {
  background-color: #777;
  transform: scale(1.05);
}

/* Loading animation */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-container.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  display: inline-block;
  width: 80px;
  height: 80px;
  position: relative;
}

.loading-spinner:after {
  content: " ";
  display: block;
  border-radius: 50%;
  width: 0;
  height: 0;
  margin: 8px;
  box-sizing: border-box;
  border: 32px solid #1DB954;
  border-color: #1DB954 transparent #1DB954 transparent;
  animation: loading-spinner 1.2s infinite;
}

.loading-text {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #fff;
}

@keyframes loading-spinner {
  0% {
    transform: rotate(0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }
  50% {
    transform: rotate(180deg);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  100% {
    transform: rotate(360deg);
  }
}
