/* ============================================
   SIGNUP PAGE STYLES
   ============================================ */

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   PAGE BACKGROUND
   ============================================ */

.signup-page {
  background-color: #020410;
  background-image: url('../images/bg-signup.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
  min-height: 100vh;
  position: relative;
  opacity: 1;
}

/* Background overlay with 30% opacity */
.signup-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #020410;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.signup-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 48px 40px;
}

.signup-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   SIGNUP CARD - 12 COLUMN GRID
   ============================================ */

.signup-card {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* ============================================
   LEFT COLUMN - VIDEO (6 COLUMNS)
   ============================================ */

.signup-video-column {
  grid-column: span 6;
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 600px;
}

.signup-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Powered By Section */
.video-powered-by {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 48px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.powered-by-text {
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0%;
  color: #9AA5B1;
  text-align: center;
  margin: 0 0 24px 0;
  text-transform: uppercase;
}

.powered-by-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
}

.powered-logo {
  height: 23px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ============================================
   RIGHT COLUMN - FORM (6 COLUMNS)
   ============================================ */

.signup-form-column {
  grid-column: span 6;
  padding: 48px;
  background: rgba(18, 20, 30, 0.6);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Close Button */
.signup-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon as background with padding */
.signup-close::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url('../images/icon-x-close.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.signup-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.signup-close:focus {
  outline: 2px solid #0055FE;
  outline-offset: 2px;
}

/* Success Badge */
.signup-badge {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.badge-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 85, 254, 0.2) 0%, rgba(51, 119, 255, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 85, 254, 0.3);
  padding: 10px;
}

.badge-icon {
  width: 32px;
  height: 32px;
  display: block;
}

/* Title */
.signup-title {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.6) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.signup-subtitle {
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.5;
}

.signup-notice {
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 32px;
}

/* ============================================
   BUTTONS
   ============================================ */

.signup-button {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

/* Google Button */
.signup-button--google {
  background: #1A1A1A;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 24px;
  box-shadow: 
    0px 8px 16px -4px rgba(5, 6, 30, 0.1),
    0px 4px 6px 0px rgba(5, 6, 30, 0.05);
}

.signup-button--google:hover {
  background: #222222;
  border-color: rgba(255, 255, 255, 0.1);
}

.signup-button--google:focus {
  outline: 2px solid #0055FE;
  outline-offset: 2px;
}

.button-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Primary Button */
.signup-button--primary {
  background: #0055FE;
  color: #FFFFFF;
  margin-top: 24px;
  transition: background 0.2s ease;
}

.signup-button--primary:hover {
  background: #3377FF;
}

.signup-button--primary:focus {
  outline: 2px solid #0055FE;
  outline-offset: 2px;
}

.signup-button--primary:active {
  background: #0055FE;
}

/* ============================================
   DIVIDER
   ============================================ */

.signup-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(78, 89, 104, 0) 0%,
    rgba(78, 89, 104, 1) 50%,
    rgba(78, 89, 104, 0) 100%
  );
}

.divider-text {
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #9AA5B1;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* ============================================
   FORM
   ============================================ */

.signup-form {
  width: 100%;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 8px;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.form-input:focus {
  outline: none;
  border-color: #0055FE;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 85, 254, 0.1);
}

/* Error State */
.form-input--error {
  border-color: #FF4444;
  background: rgba(255, 68, 68, 0.05);
}

.form-input--error:focus {
  border-color: #FF4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.form-error {
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: 13px;
  color: #FF4444;
  margin-top: 6px;
  display: block;
}

/* Password Wrapper */
.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 48px;
}

/* Password Toggle Button */
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s ease;
}

.password-toggle:hover {
  opacity: 1;
}

.password-toggle:focus {
  outline: 2px solid #0055FE;
  outline-offset: 2px;
  border-radius: 4px;
}

.password-icon {
  width: 20px;
  height: 20px;
  display: block;
  transition: opacity 0.2s ease;
}

.password-icon--show {
  opacity: 0.8;
}

.password-icon--hide {
  opacity: 0.8;
  display: none;
}

/* Toggle visibility states */
.password-toggle[aria-pressed="true"] .password-icon--show {
  display: none;
}

.password-toggle[aria-pressed="true"] .password-icon--hide {
  display: block;
}

/* ============================================
   FOOTER LINKS
   ============================================ */

.signup-footer {
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 24px;
}

.signup-link {
  color: #0055FE;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.signup-link:hover {
  color: #3377FF;
}

.signup-link:focus {
  outline: 2px solid #0055FE;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Promo Link Spacing */
.signup-promo-link {
  margin-top: 24px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .signup-card {
    grid-template-columns: 1fr;
  }
  
  .signup-video-column {
    grid-column: span 1;
    min-height: 300px;
  }
  
  .signup-form-column {
    grid-column: span 1;
    padding: 40px 32px;
  }
  
  .video-powered-by {
    padding: 0 32px 40px;
  }
  
  .powered-by-logos {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .signup-main {
    padding: 150px 24px 32px;
  }
  
  .signup-form-column {
    padding: 32px 24px;
  }
  
  .signup-title {
    font-size: 28px;
  }
  
  .signup-video-column {
    min-height: 250px;
  }
  
  .video-powered-by {
    padding: 0 24px 32px;
  }
  
  .powered-by-logos {
    gap: 40px;
  }
  
  .powered-logo {
    height: 20px;
  }
}

@media (max-width: 480px) {
  .signup-title {
    font-size: 24px;
  }
  
  .signup-subtitle {
    font-size: 15px;
  }
  
  .signup-button {
    height: 44px;
    font-size: 14px;
  }
  
  .form-input {
    height: 44px;
    font-size: 14px;
  }
  
  .video-powered-by {
    padding: 0 20px 24px;
  }
  
  .powered-by-logos {
    gap: 32px;
  }
  
  .powered-logo {
    height: 18px;
  }
  
  .powered-by-text {
    font-size: 11px;
    margin-bottom: 20px;
  }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .signup-card {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .form-input {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .signup-button {
    border: 2px solid currentColor;
  }
}
