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

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #e5f9ff 0%, #e5f9ff 100%);
  min-height: 100vh;
  overflow: hidden;
}

.container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
}

.left-panel {
  width: 40%;
  height: 100vh;
  background: #e5f9ff;
  backdrop-filter: blur(10px);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

.title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.1;
  color: #4fb2ce;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.title-simple {
  display: none;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.3;
  color: #4fb2ce;
  margin-bottom: 5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.right-panel {
  width: 60%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #e5f9ff;
}

.photo {
  position: absolute;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 12px 12px 40px 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.photo:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.25);
  z-index: 1000 !important;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.photo-1 {
  width: 300px;
  height: 300px;
  top: -1%;
  left: 42%;
  transform: rotate(-8deg);
  z-index: 5;
}

.photo-2 {
  width: 400px;
  height: 400px;
  top: 9%;
  right: 0%;
  transform: rotate(12deg);
  z-index: 4;
}

.photo-3 {
  width: 350px;
  height: 350px;
  top: 47%;
  left: 15%;
  transform: rotate(-15deg);
  z-index: 3;
}

.photo-4 {
  width: 220px;
  height: 170px;
  top: 29%;
  left: 24%;
  transform: rotate(20deg);
  z-index: 6;
}

.photo-5 {
  width: 350px;
  height: 350px;
  top: 60%;
  right: -1%;
  transform: rotate(-12deg);
  z-index: 2;
}

.photo-6 {
  width: 350px;
  height: 350px;
  bottom: -4%;
  left: 42%;
  transform: rotate(8deg);
  z-index: 4;
}

.floating-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.heart {
  position: absolute;
  color: #ff6b6b;
  font-size: 1.2rem;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
}

.heart-1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}
.heart-2 {
  top: 30%;
  right: 10%;
  animation-delay: 2s;
}
.heart-3 {
  bottom: 20%;
  left: 8%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: sparkle 3s ease-in-out infinite;
}

.sparkle-1 {
  top: 25%;
  left: 45%;
  animation-delay: 0s;
}
.sparkle-2 {
  top: 55%;
  right: 25%;
  animation-delay: 1s;
}
.sparkle-3 {
  bottom: 30%;
  left: 60%;
  animation-delay: 2s;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.signup-modal {
  position: fixed;
  top: 50%;
  left: 77%;
  transform: translate(-50%, -50%);
  background: #ffffffb0;
  backdrop-filter: blur(43px);
  border-radius: 20px;
  padding: 30px;
  width: 450px;
  max-width: 90vw;
  overflow-y: auto;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  z-index: 1000;
}

/* Step indicator */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: #ddd;
  transition: all 0.3s ease;
}

.step.active .step-circle {
  background: #5bc0de;
}

.step.completed .step-circle {
  background: #28a745;
}

.step-text {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step.active .step-text {
  color: #5bc0de;
  font-weight: 600;
}

.step-divider {
  width: 20px;
  height: 2px;
  background: #ddd;
  transition: all 0.3s ease;
}

.step-divider.active {
  background: #5bc0de;
}

.logo-section {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logo-img {
  height: 60px;
  width: 60px;
}

.welcome-text {
  display: flex;
  justify-content: start;
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signup-title {
  display: flex;
  justify-content: start;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 15px;
}

.form-row .form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: #5bc0de;
  box-shadow: 0 0 0 3px rgba(91, 192, 222, 0.1);
}

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

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Photo Upload Styles */
.image-upload-options {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.upload-option-btn {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.upload-option-btn:hover {
  border-color: #5bc0de;
  color: #5bc0de;
}

.upload-option-btn.active {
  background: #5bc0de;
  color: white;
  border-color: #5bc0de;
}

.image-upload-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.form-control-file {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.image-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 120px;
  width: 100%;
  max-width: 200px;
  position: relative;
}

.image-preview:hover {
  border-color: #5bc0de;
  background-color: rgba(91, 192, 222, 0.05);
}

.image-preview i {
  color: #999;
  margin-bottom: 8px;
}

.image-preview span {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

.image-preview img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #5bc0de;
  display: block;
}

/* Camera Modal */
.camera-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.camera-modal.active {
  display: flex;
}

.camera-modal-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.camera-video {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  margin: 10px 0;
}

#capturedImage {
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
  margin: 10px 0;
}

.camera-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.camera-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 70px;
  justify-content: center;
}

.capture-btn {
  background: #5bc0de;
  color: white;
}

.capture-btn:hover {
  background: #4ab5d1;
}

.cancel-btn,
.retake-btn {
  background: #6c757d;
  color: white;
}

.cancel-btn:hover,
.retake-btn:hover {
  background: #5a6268;
}

.use-photo-btn {
  background: #28a745;
  color: white;
}

.use-photo-btn:hover {
  background: #218838;
}

/* Form Options */
.form-options {
  margin-bottom: 15px;
  text-align: left;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #5bc0de;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-wrapper label {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 0;
}

.checkbox-wrapper a {
  color: #5bc0de;
  text-decoration: none;
}

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

/* Navigation Buttons */
.form-navigation {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

.nav-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: #5bc0de;
  color: white;
}

.btn-primary:hover {
  background: #4ab5d1;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.signup-btn {
  width: 100%;
  padding: 14px;
  background: #5bc0de;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 15px;
  transition: background 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signup-btn:hover {
  background: #4ab5d1;
}

.signup-btn:active {
  transform: translateY(1px);
}

.signup-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.divider {
  text-align: center;
  margin: 15px 0;
  color: #999;
  font-size: 12px;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
  z-index: 1;
}

.divider span {
  background: #ffffffb0;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.login-link {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.login-link a {
  color: #5bc0de;
  text-decoration: none;
  font-weight: 500;
}

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

/* Alert styles */
.message {
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 12px;
  text-align: left;
  line-height: 1.4;
}

.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.success-message {
  background: #d1f2eb;
  border: 1px solid #badbcc;
  color: #0f5132;
}

/* Responsive Design */

/* Laptop/tablet screens (1024px - 1366px) */
@media (max-width: 1366px) and (min-width: 1025px) {
  .photo-1 {
    width: 240px;
    height: 240px;
  }

  .photo-2 {
    width: 400px;
    height: 400px;
  }

  .photo-3 {
    width: 280px;
    height: 280px;
  }

  .photo-4 {
    width: 176px;
    height: 136px;
  }

  .photo-5 {
    width: 280px;
    height: 280px;
  }

  .photo-6 {
    width: 280px;
    height: 280px;
  }

  .heart {
    font-size: 1rem;
  }

  .sparkle {
    width: 3px;
    height: 3px;
  }
}

/* Smaller laptops and tablets (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .signup-modal {
    left: 72%;
    width: 400px;
    padding: 25px;
  }

  .photo-1 {
    width: 200px;
    height: 200px;
  }

  .photo-2 {
    width: 320px;
    height: 320px;
  }

  .photo-3 {
    width: 230px;
    height: 230px;
  }

  .photo-4 {
    width: 150px;
    height: 115px;
  }

  .photo-5 {
    width: 230px;
    height: 230px;
  }

  .photo-6 {
    width: 230px;
    height: 230px;
  }

  .heart {
    font-size: 0.9rem;
  }

  .sparkle {
    width: 2px;
    height: 2px;
  }
}

/* Medium tablets and small laptops (769px - 900px) */
@media (max-width: 900px) and (min-width: 769px) {
  .photo-1 .photo-2,
  .photo-3,
  .photo-4,
  .photo-5,
  .photo-6 {
    display: none !important;
  }
  .signup-modal {
    left: 68%;
    width: 380px;
    padding: 25px;
  }

  .left-panel {
    width: 35%;
    padding: 60px 40px;
  }

  .right-panel {
    width: 65%;
  }

  .title {
    font-size: 2.8rem;
  }
}
/* Replace the mobile media query with this corrected version */

@media (max-width: 768px) {
  body {
    overflow: auto !important;
    background: #f8f9fa;
  }

  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .left-panel {
    display: none; /* Hide left panel */
  }

  .right-panel {
    display: none; /* Hide decorative panel */
  }

  /* Hide all photos and decorative elements */
  .photo-1, .photo-2, .photo-3, .photo-4, .photo-5, .photo-6 {
    display: none !important;
  }

  .floating-hearts, .sparkles {
    display: none;
  }

  .signup-modal {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important; /* CHANGED: Let content determine height */
    max-height: none !important;
    min-height: 100vh; /* ADDED: Ensure it fills viewport */
    margin: 0;
    padding: 20px;
    border-radius: 0;
    background: #f8f9fa;
    box-shadow: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ADDED: Start from top */
  }

  /* Keep step functionality intact */
  .form-step {
    display: none; /* Keep the step hiding logic */
    flex: 1;
  }

  .form-step.active {
    display: block; /* Show active step */
  }

  .step-indicator {
    margin-bottom: 20px;
    gap: 8px;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .step-text {
    font-size: 10px; /* Show step text on mobile */
  }

  .step-divider {
    width: 20px;
  }

  .logo-section {
    margin-bottom: 20px;
    padding-top: 20px;
  }

  .logo-img {
    height: 40px;
    width: 40px;
  }

  .welcome-text {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .signup-title {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 15px;
  }

  .form-row .form-group {
    margin-bottom: 15px;
  }

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

  .form-group label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .form-control {
    padding: 14px 16px;
    font-size: 16px; /* Prevent iOS zoom */
    border-radius: 8px;
  }

  .image-upload-options {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
  }

  .upload-option-btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
  }

  .image-upload-container {
    margin: 15px 0;
    display: flex;
    justify-content: center;
  }

  .image-preview {
    min-height: 120px;
    max-width: 200px;
    padding: 20px 15px;
  }

  .checkbox-wrapper label {
    font-size: 13px;
    line-height: 1.4;
  }

  .nav-btn, .signup-btn {
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
  }

  .form-navigation {
    margin-top: 25px;
    flex-direction: column;
    gap: 12px;
  }

  .divider {
    margin: 25px 0;
  }

  .login-link {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
  }


}

@media (max-width: 480px) {
  .signup-modal {
    padding: 15px;
  }

  .signup-title {
    font-size: 20px;
  }

  .form-control {
    padding: 12px 14px;
  }

  .nav-btn, .signup-btn {
    padding: 14px;
    font-size: 13px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}
#removeImageBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#removeImageBtn:hover {
  background: #c82333;
  transform: scale(1.1);
}

#removeImageBtn::before {
  content: "×";
  font-size: 18px;
  line-height: 1;
  font-weight: bold;
}

/* Update the image-upload-container to be relative positioned */
.image-upload-container {
  position: relative;
}

/* Style for when image is shown */
.image-preview img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #5bc0de;
}
