@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0A1543; /* Deep Blue base */
  --bg-secondary: #060c29;
  --accent-cyan: #30DFFF;
  --accent-green: #43DE00;
  --accent-pink: #FD5EE8;
  --accent-purple: #9100CC;
  --text-primary: #FFFFFF;
  --text-secondary: #D2D2D2; /* Light Gray for clean reading */
  --glass-bg: rgba(10, 21, 67, 0.65);
  --glass-border: rgba(48, 223, 255, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.05);
  --error-color: #FD5EE8; /* Electric Pink for errors/warnings matches the vibe */
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Quicksand', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Gradients */
body::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 0, 204, 0.15) 0%, rgba(0,0,0,0) 70%);
  top: -15%;
  right: -10%;
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 223, 255, 0.12) 0%, rgba(0,0,0,0) 70%);
  bottom: -15%;
  left: -10%;
  z-index: -1;
  pointer-events: none;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 480px;
  padding: 24px;
  z-index: 10;
}

/* Card Styling with subtle neon glows and soft borders */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 28px;
  padding: 44px 36px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 var(--glass-highlight),
              0 0 40px rgba(145, 0, 204, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Accent neon border glow animation */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-pink), transparent);
  animation: borderGlow 6s infinite linear;
}

@keyframes borderGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Logo and Editorial Header */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
  text-align: center;
}

.brand-logo {
  font-family: 'American Typewriter', 'Courier Prime', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan) 65%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Step Panel Transition */
.step {
  display: none;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.step.active {
  display: block;
}

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

/* Typography Rules */
h2 {
  font-family: 'American Typewriter', 'Courier Prime', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.35;
  color: #FFFFFF;
}

p.description {
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 24px;
  border-radius: 14px;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  gap: 12px;
}

.btn-primary {
  background-color: var(--accent-green);
  color: #0A1543; /* High contrast dark blue */
  box-shadow: 0 4px 15px rgba(67, 222, 0, 0.25);
}

.btn-primary:hover {
  background-color: #55ee12;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(67, 222, 0, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(48, 223, 255, 0.25);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background-color: rgba(48, 223, 255, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* Google OAuth Button */
.btn-google {
  background-color: #FFFFFF;
  color: #0A1543;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-top: 12px;
}

.btn-google:hover {
  background-color: #F8F9FA;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

/* Form Fields */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-prefix {
  padding: 14px 14px 14px 18px;
  background-color: rgba(10, 21, 67, 0.8);
  border: 1px solid rgba(48, 223, 255, 0.25);
  border-right: none;
  border-radius: 14px 0 0 14px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.phone-input {
  border-radius: 0 14px 14px 0 !important;
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  background-color: rgba(10, 21, 67, 0.4);
  border: 1px solid rgba(48, 223, 255, 0.2);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: var(--accent-cyan);
  background-color: rgba(48, 223, 255, 0.03);
  box-shadow: 0 0 0 3px rgba(48, 223, 255, 0.2);
}

/* Verification Code Inputs */
.code-inputs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 28px;
}

.code-field {
  width: 52px;
  height: 60px;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 26px;
  font-weight: 700;
  border-radius: 14px;
  background-color: rgba(10, 21, 67, 0.4);
  border: 1px solid rgba(48, 223, 255, 0.2);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.code-field:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(48, 223, 255, 0.2);
  background-color: rgba(48, 223, 255, 0.03);
}

/* Message Feedback Styles */
.alert-error {
  background-color: rgba(253, 94, 232, 0.1);
  border: 1px solid rgba(253, 94, 232, 0.3);
  color: var(--accent-pink);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  display: none;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Recaptcha container styling */
#recaptcha-container {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

/* Success Checkmark Animation with custom neon green */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  display: block;
}

.success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid var(--accent-green);
  box-shadow: 0 0 15px rgba(67, 222, 0, 0.3);
}

.success-checkmark .check-icon::after {
  content: '';
  height: 120px;
  width: 120px;
  background: var(--bg-primary);
  position: absolute;
  left: 35px;
  top: -30px;
  transform: rotate(-45deg);
}

.success-checkmark .check-icon .icon-line {
  height: 5px;
  background-color: var(--accent-green);
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.success-checkmark .check-icon .icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.success-checkmark .check-icon .icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
}

@keyframes icon-line-tip {
  0% { width: 0; left: 1px; top: 19px; }
  54% { width: 0; left: 1px; top: 19px; }
  70% { width: 50px; left: -8px; top: 37px; }
  84% { width: 17px; left: 21px; top: 48px; }
  100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
  0% { width: 0; right: 46px; top: 54px; }
  65% { width: 0; right: 46px; top: 54px; }
  84% { width: 55px; right: 0px; top: 35px; }
  100% { width: 47px; right: 8px; top: 38px; }
}

/* User Profile Preview card */
.user-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 28px;
  border: 1px solid rgba(48, 223, 255, 0.1);
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-cyan);
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.user-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-email {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Footer / Progress indicator dots */
.footer {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot.active {
  background-color: var(--accent-cyan);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(48, 223, 255, 0.5);
}

/* Loading Spinner */
.spinner {
  width: 22px;
  height: 22px;
  border: 3px dashed var(--bg-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.loading .spinner {
  display: inline-block;
}
.btn.loading span {
  display: none;
}
.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}
