/* VAPI Template Styles for CallAI */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #0f0f0f;
  color: #ffffff;
  min-height: 100vh;
}

/* Background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* Main layout */
.auth-container {
  min-height: 100vh;
  display: flex;
}

.auth-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  max-width: 600px;
}

.auth-right {
  flex: 1;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

/* Logo */
.logo {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

/* Form card */
.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.auth-card h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.auth-card .subtitle {
  color: #a0a0a0;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Social buttons */
.social-buttons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.social-btn {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
}

/* Divider */
.divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  color: #666;
  font-size: 0.875rem;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider span {
  background: #0f0f0f;
  padding: 0 1rem;
  position: relative;
}

/* Form elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(79, 209, 199, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
  color: #666;
}

/* Primary button */
.btn-primary {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #ff6b35;
  border: none;
  border-radius: 8px;
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.btn-primary:hover {
  background: #ff6b35;
  transform: translateY(-1px);
  color: #000000;
}

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

/* Form footer */
.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #a0a0a0;
}

.form-footer a {
  color: #ff6b35;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* Right side content */
.testimonial {
  color: #ffffff;
  max-width: 500px;
}

.testimonial h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.testimonial-content {
  margin-bottom: 2rem;
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff6b35;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #000000;
}

.author-info h4 {
  margin: 0;
  font-weight: 600;
  color: #ffffff;
}

.author-info p {
  margin: 0;
  color: #a0a0a0;
  font-size: 0.875rem;
}

/* Password field toggle */
.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0.25rem;
}

.password-toggle:hover {
  color: #ff6b35;
}

/* Grid layout for forms */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-right {
    order: -1;
    min-height: 300px;
  }

  .auth-left {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .social-buttons {
    flex-direction: column;
  }

  .testimonial h2 {
    font-size: 2rem;
  }
}

/* Email verification modal */
.verification-modal {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.verification-content {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  margin: 0 auto;
}

.verification-code {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.verification-code input {
  width: 3rem;
  height: 3rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
}

.verification-code input:focus {
  border-color: #ff6b35;
  outline: none;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-1 {
  margin-top: 0.5rem;
}

.text-error {
  color: #ff6b6b;
  font-size: 0.875rem;
}

.text-success {
  color: #ff6b35;
  font-size: 0.875rem;
}
