@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;600&display=swap');

:root {
  --primary: #00f0ff;
  --secondary: #7000ff;
  --bg-color: #030014;
  --glass-bg: rgba(20, 20, 35, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.15), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.15), transparent 25%);
  color: #fff;
  padding: 20px;
}

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { width: 300px; height: 300px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -100px; right: -50px; animation-delay: -5s; }
.orb-3 { width: 200px; height: 200px; background: #ff007f; top: 40%; left: 60%; animation-delay: -10s; opacity: 0.3; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 50px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.9); }
}

.login-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  perspective: 1000px;
  animation: slideIn 0.6s ease-out;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: cardEnter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform: translateY(30px) rotateX(10deg);
  opacity: 0;
  position: relative;
}

@keyframes cardEnter {
  to {
    transform: translateY(0) rotateX(0);
    opacity: 1;
  }
}

.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 25px;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 240, 255, 0.3), transparent 60%);
  z-index: -1;
  mask-image: linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-image: linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
}

.logo-container, .top-section {
  text-align: center;
}

.logo-icon {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 5px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -1px;
}

.subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.profile-picture {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 90px;
  height: 90px;
  margin-left: auto;
  margin-right: auto;
}

.profile-picture img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #000;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
  border: 2px solid rgba(0, 240, 255, 0.5);
}

.profile-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  color: var(--primary);
  background: linear-gradient(135deg, var(--glass-bg), transparent);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.verified-icon {
  color: #00f0ff;
  font-size: 20px;
  font-weight: bold;
  margin-left: 5px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.username-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 5px;
}

.input-group, .field {
  margin-bottom: 24px;
  position: relative;
}

.input-label, label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: left;
}

.input-field, input[type="text"], input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-field:focus, input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 
    0 0 0 4px rgba(0, 240, 255, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.input-field.error {
  border-color: #ff0055;
  background: rgba(255, 0, 85, 0.1);
  box-shadow: 0 0 0 4px rgba(255, 0, 85, 0.1);
  animation: shake 0.5s;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.message-input-wrapper {
  position: relative;
}

.message-input {
  padding-right: 45px;
}

.message-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 18px;
}

.character-counter {
  font-size: 12px;
  color: var(--primary);
  margin-top: 5px;
  text-align: right;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-label {
  font-size: 14px;
  color: #cbd5e1;
  cursor: pointer;
}

/* Value Input Wrapper */
.value-input {
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--primary);
  text-align: center;
}

.min-value-text {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 5px;
  text-align: center;
  display: block;
}

.min-value-text.error-text {
  color: #ff0055;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.action-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--primary);
  font-size: 0.9rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.action-btn:active {
  transform: translateY(1px);
}

.action-btn.recording {
  background: rgba(255, 0, 85, 0.1);
  border-color: #ff0055;
  color: #ff0055;
  animation: pulseRecording 1.5s infinite;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.2);
}

@keyframes pulseRecording {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 0, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

/* Buttons */
.continue-btn, .btn-submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--secondary), var(--primary), var(--secondary));
  background-size: 200% auto;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: gradientShift 3s linear infinite;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.continue-btn::before, .btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.continue-btn:hover, .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
}

.continue-btn:hover::before, .btn-submit:hover::before {
  left: 100%;
}

.continue-btn:active, .btn-submit:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.3);
}

.continue-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
  box-shadow: none;
}

/* Audio Player */
#audioPlayerContainer {
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 16px;
}

#audioPlayerContainer audio {
  width: 100%;
  border-radius: 8px;
  filter: sepia(20%) hue-rotate(180deg) saturate(300%) invert(90%);
}

/* Modal adjustments */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 24px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: cardEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content h3 {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 15px;
}

.modal-content p {
  color: #94a3b8;
  margin-bottom: 25px;
}

.pix-image {
  background: #fff;
  padding: 15px;
  border-radius: 16px;
  margin: 0 auto 20px;
  width: 200px;
  height: 200px;
}

.pix-image img {
  width: 100%;
  height: 100%;
}

.pix-code-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pix-code {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

.modal-close {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Success Modal Checkmark */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--primary);
  animation: successPulse 2s infinite;
}

@keyframes successPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(0, 240, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
