/* ========================================
   TRUE ACCESS - SIGNUP PAGE STYLES
   ======================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #F2F6FA 0%, #E8F0F8 100%);
  min-height: 100vh;
  padding: 32px 16px;
}

.signup-container {
  max-width: 560px;
  margin: 0 auto;
}

.signup-header {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #9AC6F3 0%, #BEE4D2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(154, 198, 243, 0.3);
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: #2B3A4A;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 16px;
  color: #5A6C7D;
}

#signupForm {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px 28px 40px;
  box-shadow: 0 8px 32px rgba(43, 58, 74, 0.12);
  animation: fadeInUp 0.6s ease;
}

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

.form-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #E0E8F0;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #2B3A4A;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2B3A4A;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid #E0E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  color: #2B3A4A;
  transition: all 0.3s ease;
  margin-bottom: 16px;
  font-family: inherit;
}

input::placeholder {
  color: #8A9AAB;
}

input:focus {
  outline: none;
  border-color: #9AC6F3;
  box-shadow: 0 0 0 4px rgba(154, 198, 243, 0.1);
}

input.error {
  border-color: #F9B6B6;
}

input.success {
  border-color: #A3D9B1;
}

.error-message {
  display: block;
  font-size: 13px;
  color: #F9B6B6;
  margin-top: -12px;
  margin-bottom: 16px;
  font-weight: 500;
}

.password-requirements {
  font-size: 12px;
  color: #8A9AAB;
  margin-top: -12px;
  margin-bottom: 16px;
}

.profile-pic-section {
  text-align: center;
  margin-bottom: 20px;
}

#profilePicPreview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px dashed #BEE4D2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 12px auto 16px;
  background: #FAFCFD;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

#profilePicPreview:hover {
  border-color: #9AC6F3;
  transform: scale(1.05);
}

#profilePicPreview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#profilePicPreview.empty::before {
  content: '📷';
  font-size: 40px;
  opacity: 0.5;
}

#profilePicPreview.empty::after {
  content: 'Click to upload';
  position: absolute;
  bottom: 10px;
  font-size: 12px;
  color: #8A9AAB;
}

#profilePicInput {
  display: none;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  margin-top: 2px;
  accent-color: #9AC6F3;
  cursor: pointer;
}

.checkbox-wrapper label {
  font-size: 14px;
  font-weight: 500;
  color: #2B3A4A;
  margin: 0;
  cursor: pointer;
}

.checkbox-wrapper a {
  color: #9AC6F3;
  text-decoration: none;
}

.checkbox-wrapper a:hover {
  text-decoration: underline;
}

#continueBtn {
  width: 100%;
  background: linear-gradient(135deg, #9AC6F3 0%, #BEE4D2 100%);
  color: #2B3A4A;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(154, 198, 243, 0.4);
}

#continueBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(154, 198, 243, 0.5);
}

#continueBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#continueBtn.loading {
  position: relative;
  color: transparent;
}

#continueBtn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(43, 58, 74, 0.3);
  border-top-color: #2B3A4A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.footer-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #5A6C7D;
  background: #FFFFFF;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(43, 58, 74, 0.06);
}

.footer-link a {
  color: #9AC6F3;
  text-decoration: none;
  font-weight: 600;
}

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

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: #FFFFFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(43, 58, 74, 0.08);
  transition: all 0.3s ease;
  z-index: 100;
}

.back-btn:hover {
  transform: translateX(-2px);
  box-shadow: 0 6px 20px rgba(43, 58, 74, 0.12);
}

.alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert.show {
  display: flex;
}

.alert-error {
  background: #FFF5F5;
  color: #D9534F;
  border: 1px solid #FFE5E5;
}

.alert-success {
  background: #F5FDF8;
  color: #2E7D32;
  border: 1px solid #E8F5E9;
}

@media (max-width: 480px) {
  #signupForm {
    padding: 24px 20px 32px;
  }

  h1 {
    font-size: 24px;
  }

  .back-btn {
    top: 16px;
    left: 16px;
  }
}