@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Waitlist Section Styles */
.join-waitlist {
  max-width: 480px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(59, 130, 246, 0.08),
    0 8px 32px rgba(30, 64, 175, 0.06),
    0 1px 4px rgba(59, 130, 246, 0.1);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.join-waitlist::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

/* Form Styles */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.email-form > span {
  display: block;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 12px;
  text-align: center;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Email Input */
.email {
  position: relative;
}

.email input[type="email"] {
  width: 100%;
  height: 56px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 400;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.email input[type="email"]::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.email input[type="email"]:focus {
  border-color: #3b82f6;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.1),
    0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.email input[type="email"]:focus::placeholder {
  opacity: 0.7;
}

/* OS Question */
.email-form > p {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  margin: 8px 0 16px 0;
  text-align: center;
}

/* Checkbox Labels */
.email-form label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

.email-form label:hover {
  background-color: rgba(59, 130, 246, 0.04);
  color: #1e40af;
  border-color: #cbd5e1;
}

.email-form label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  accent-color: #3b82f6;
  cursor: pointer;
  border-radius: 4px;
}

/* Submit Button */
.email-form button[type="submit"] {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.3),
    0 2px 8px rgba(29, 78, 216, 0.2);
  margin-top: 8px;
}

.email-form button[type="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: left 0.6s ease;
}

.email-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 28px rgba(59, 130, 246, 0.4),
    0 4px 16px rgba(29, 78, 216, 0.3);
}

.email-form button[type="submit"]:hover::before {
  left: 100%;
}

.email-form button[type="submit"]:active {
  transform: translateY(-1px);
}

/* Thank You Message */
#thankyou-message {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 500;
  color: #047857;
}

/* Responsive Design */
@media (max-width: 540px) {
  .join-waitlist {
    margin: 16px;
    padding: 32px 24px;
    border-radius: 20px;
  }
  
  .email-form > span {
    font-size: 24px;
  }
  
  .email-form label {
    justify-content: flex-start;
    padding: 16px;
  }
}

/* Focus visible for accessibility */
.email-form button[type="submit"]:focus-visible,
.email input[type="email"]:focus-visible,
.email-form label input[type="checkbox"]:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.waitlistbackground {
  /* background: url("../images/waitlist-background.jpg") no-repeat center center;
  background-size: cover; */
  background-color: yellow;
  width: 100%;
  height: 800px;
  /* margin-top: 1350px; */
}
/* 
--- adons */


.waitlist-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;  /* ensures wrapper grows with content */
  align-items: center;     /* centers the form horizontally */
}

.join-waitlist {
  position: relative;
  z-index: 1;              /* above background */
  width: 100%;
  max-width: 480px;
  padding: 48px 40px;      /* existing padding */
  margin: 0;               /* no top/bottom margins needed */
}

.waitlistbackground {
  position: absolute;
  inset: 0;                /* fills the wrapper */
  z-index: 0;
  pointer-events: none;    /* background does not block clicks */
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(108,117,125,0.06));
}

.waitlist-wrapper {
  height: 1000px; 
  background-image: url(../images/glitter.png), linear-gradient(180deg, #ffffff 0%, #3b82f6 20%, #3b82f6 80%, #ffffff 100%); 
  background-repeat: repeat, no-repeat; 
  background-size: 120px, cover; 
  background-blend-mode: screen;
}
