/* assets/css/signup.css - Modern Glassmorphism Design */
:root {
  --signup-bg-start: #0a0f3c;
  --signup-bg-end: #020418;
  --signup-card-bg: rgba(20, 25, 75, 0.7);
  --signup-card-border: rgba(0, 240, 181, 0.25);
  --signup-text-light: #ffffff;
  --signup-text-medium: #c0c8e7;
  --signup-accent-primary: #00f0b5;
  --signup-accent-secondary: #7877C6;
  --signup-input-bg: rgba(255, 255, 255, 0.08);
  --signup-input-border: rgba(255, 255, 255, 0.2);
  --signup-input-text: #ffffff;
  --signup-error-bg: rgba(244, 67, 54, 0.2);
  --signup-error-text: #ff8a80;
  --signup-font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
  --focus-outline-color: #00f0b5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.signup-page {
  font-family: var(--signup-font-family);
  background: #020418;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(0, 240, 181, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 240, 181, 0.08) 0%, transparent 35%);
  color: var(--signup-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  margin: 0;
  overflow-x: hidden;
}

.signup-wrapper {
  width: 100%;
  max-width: 1000px;
  display: flex;
  background: rgba(15, 20, 30, 0.75);
  border-radius: 24px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border: 1px solid var(--signup-card-border);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: relative;
}

.signup-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--signup-accent-primary), var(--signup-accent-secondary), var(--signup-accent-primary), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 200% 0;
  }

  50% {
    background-position: -200% 0;
  }
}

/* Visual Column */
.signup-visual-container {
  flex: 1;
  background: linear-gradient(135deg,
      rgba(0, 240, 181, 0.2) 0%,
      rgba(120, 119, 198, 0.2) 100%);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  color: var(--signup-text-light);
  text-align: center;
  min-width: 350px;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.signup-visual-container h3 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--signup-text-light);
  text-shadow: 0 2px 10px rgba(0, 240, 181, 0.3);
}

.signup-visual-container p.visual-tagline {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 350px;
  opacity: 0.9;
  color: var(--signup-text-medium);
}

/* Profile Creation Animation */
.profile-creation-animation {
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-card-outline {
  width: 100px;
  height: 120px;
  border: 3px solid var(--signup-bg-end);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  overflow: hidden;
  animation: drawCard 1s ease-out forwards;
}

@keyframes drawCard {
  0% {
    height: 0;
    opacity: 0;
  }

  100% {
    height: 120px;
    opacity: 1;
  }
}

.profile-pic-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInPic 0.5s 0.8s ease-out forwards;
}

.profile-pic-placeholder .user-icon {
  width: 24px;
  height: 24px;
  color: var(--signup-bg-end);
}

@keyframes fadeInPic {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.profile-line {
  width: 80%;
  height: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin-bottom: 8px;
  transform: scaleX(0);
  transform-origin: left;
}

.profile-line.line-1 {
  animation: drawLine 0.4s 1s ease-out forwards;
}

.profile-line.line-2 {
  animation: drawLine 0.4s 1.2s ease-out forwards;
}

.profile-line.line-3 {
  animation: drawLine 0.4s 1.4s ease-out forwards;
}

@keyframes drawLine {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.profile-checkmark {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  background-color: var(--signup-accent-primary);
  color: var(--signup-bg-end);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
  animation: popCheckmark 0.5s 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.profile-checkmark .checkmark-icon {
  width: 28px;
  height: 28px;
}

@keyframes popCheckmark {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Form Column */
.signup-form-container {
  flex: 1.2;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 350px;
  max-height: 100vh;
  overflow-y: auto;
}

.signup-form-container::-webkit-scrollbar {
  width: 8px;
}

.signup-form-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.signup-form-container::-webkit-scrollbar-thumb {
  background: var(--signup-accent-primary);
  border-radius: 10px;
}

.signup-branding {
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.brand-logo-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 181, 0.1);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 15px rgba(0, 240, 181, 0.2);
  transition: all 0.3s ease;
}

.brand-logo-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 240, 181, 0.3);
}

.brand-logo-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.signup-branding img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 4px 12px rgba(0, 240, 181, 0.3));
}

.signup-branding h1 {
  font-size: 1.5rem;
  color: var(--signup-text-light);
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--signup-accent-primary), var(--signup-accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.signup-form-container .form-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: var(--signup-text-light);
  font-weight: 600;
}

.signup-form .form-group {
  margin-bottom: 1.25rem;
}

.signup-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--signup-text-light);
  font-size: 0.9rem;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="password"],
.signup-form input[type="tel"],
.signup-form input[type="file"],
.signup-form .whatsapp-code-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--signup-input-border);
  border-radius: 12px;
  background: var(--signup-input-bg);
  backdrop-filter: blur(10px);
  color: var(--signup-input-text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.signup-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.signup-form input[type="file"] {
  padding: 0.65rem 1rem;
  line-height: 1.5;
  cursor: pointer;
  border: 2px dashed var(--signup-input-border);
}

.signup-form input[type="file"]:hover {
  border-color: var(--signup-accent-primary);
  background: rgba(0, 240, 181, 0.05);
}

.signup-form input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, var(--signup-accent-primary), rgba(0, 198, 148, 1));
  color: #020418;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 12px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.signup-form input[type="file"]::file-selector-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 240, 181, 0.3);
}

.whatsapp-input-group {
  display: flex;
  gap: 0.75rem;
}

.whatsapp-code-select {
  flex: 0 0 90px;
  text-align: center;
  font-weight: 600;
}

.whatsapp-number-input {
  flex: 1;
}

.signup-form input:focus,
.signup-form .whatsapp-code-select:focus {
  outline: none;
  border-color: var(--signup-accent-primary);
  box-shadow: 0 0 0 4px rgba(0, 240, 181, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.btn-signup-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--signup-accent-primary), rgba(0, 198, 148, 1));
  color: #020418;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 240, 181, 0.3);
}

.btn-signup-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-signup-submit:hover::before {
  left: 100%;
}

.btn-signup-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 240, 181, 0.5);
}

.btn-signup-submit:active {
  transform: translateY(-1px);
}

.btn-signup-submit:focus-visible {
  outline: 3px solid var(--focus-outline-color);
  outline-offset: 3px;
}

.terms-notice {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.terms-notice a {
  color: var(--signup-accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.terms-notice a:hover {
  color: var(--signup-accent-secondary);
  text-decoration: underline;
}

.form-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-links p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--signup-text-medium);
}

.form-links a {
  color: var(--signup-accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.form-links a:hover {
  color: var(--signup-accent-secondary);
  text-decoration: underline;
}

.form-links a:focus-visible {
  outline: 2px solid var(--focus-outline-color);
  outline-offset: 2px;
  border-radius: 4px;
}

.error-message {
  background: var(--signup-error-bg);
  backdrop-filter: blur(10px);
  color: var(--signup-error-text);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.9rem;
  border: 1.5px solid rgba(244, 67, 54, 0.5);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  body.signup-page {
    padding: 1rem;
  }

  .signup-wrapper {
    flex-direction: column;
    max-width: 500px;
    margin: 0;
  }

  .signup-visual-container {
    order: -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    padding: 2.5rem 2rem;
    min-width: auto;
  }

  .profile-creation-animation {
    width: 130px;
    height: 130px;
    margin-bottom: 1rem;
  }

  .profile-card-outline {
    width: 85px;
    height: 105px;
  }

  .profile-pic-placeholder {
    width: 35px;
    height: 35px;
  }

  .profile-checkmark {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .signup-visual-container h3 {
    font-size: 1.5rem;
    margin-top: 1.25rem;
  }

  .signup-visual-container p.visual-tagline {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .signup-form-container {
    padding: 2.5rem 2rem;
    min-width: auto;
    max-height: none;
  }

  .signup-branding h1 {
    font-size: 1.3rem;
  }

  .signup-form-container .form-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  body.signup-page {
    padding: 0.5rem;
  }

  .signup-wrapper {
    border-radius: 20px;
  }

  .signup-visual-container {
    padding: 2rem 1.5rem;
  }

  .signup-form-container {
    padding: 2rem 1.5rem;
  }

  .signup-branding img {
    width: 40px;
    height: 40px;
  }

  .signup-branding h1 {
    font-size: 1.2rem;
  }
}

/* Tooltip base and hover */
.tooltip-trigger {
  position: relative;
  display: inline-block;
  cursor: help;
  margin-left: 0.25rem;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 260px;
  background: rgba(15, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  color: #fff;
  text-align: left;
  border-radius: 10px;
  padding: 12px 14px;
  position: absolute;
  z-index: 1000;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 240, 181, 0.3);
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  pointer-events: none;
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(15, 20, 30, 0.95);
}

.tooltip-text.active,
.tooltip-trigger:hover .tooltip-text,
.tooltip-trigger:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

/* Mobile tooltip adjustment */
@media (max-width: 600px) {
  .tooltip-text {
    width: 85vw;
    max-width: 300px;
    bottom: auto;
    top: 140%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 12px;
    font-size: 0.75rem;
  }

  .tooltip-text::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: rgba(15, 20, 30, 0.95);
  }
}

/* Extra-small phones */
@media (max-width: 400px) {
  .signup-form-container {
    padding: 2rem 1.25rem;
  }

  .signup-visual-container {
    padding: 2rem 1.25rem;
  }

  .signup-branding img {
    width: 36px;
    height: 36px;
  }

  .signup-branding h1 {
    font-size: 1.1rem;
  }

  .signup-form-container .form-title {
    font-size: 1.2rem;
  }

  .signup-form input,
  .signup-form .whatsapp-code-select {
    font-size: 0.9rem;
    padding: 0.75rem 0.85rem;
  }

  .btn-signup-submit {
    font-size: 0.9rem;
    padding: 0.9rem;
  }

  .profile-creation-animation {
    width: 110px;
    height: 110px;
  }
}