* {
  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);
  }
}

.forgot-password-modal {
  position: fixed;
  top: 50%;
  left: 77%;
  transform: translate(-50%, -50%);
  background: #ffffffb0;
  backdrop-filter: blur(43px);
  border-radius: 20px;
  padding: 30px;
  width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  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: 8px;
}

.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: 15px;
  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;
}

.forgot-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;
}

.step-description {
  margin-bottom: 20px;
  text-align: left;
}

.step-description p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  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;
}

/* Code Input */
.code-input-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.code-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.resend-code {
  text-align: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.resend-btn {
  background: none;
  border: none;
  color: #5bc0de;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 500;
}

.resend-btn:hover {
  color: #4ab5d1;
}

/* Password Requirements */
.password-requirements {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.password-requirements h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.password-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.password-requirements li {
  font-size: 12px;
  color: #dc3545;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Success Content */
.success-content {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 20px;
}

.success-content h3 {
  color: #333;
  font-size: 24px;
  margin-bottom: 15px;
}

.success-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 25px;
}

/* Buttons */
.continue-btn {
  width: 100%;
  padding: 14px;
  background: #5bc0de;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.continue-btn:hover {
  background: #4ab5d1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.nav-btn {
  padding: 10px 20px;
  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-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Back to Login */
.back-to-login {
  text-align: center;
  margin-top: 20px;
}

.back-link {
  color: #5bc0de;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #4ab5d1;
  transform: translateX(-2px);
}

/* Alert styles */
.message {
  padding: 12px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  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) {
  .forgot-password-modal {
    left: 72%;
    width: 420px;
    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) {
  .forgot-password-modal {
    left: 68%;
    width: 400px;
    padding: 25px;
  }

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

  .right-panel {
    width: 65%;
  }

  .title {
    font-size: 2.8rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .forgot-password-modal {
    left: 50% !important;
    top: 50% !important;
    width: 90vw;
    max-width: 400px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }

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

  .left-panel {
    width: 100%;
    height: auto;
    min-height: 25vh;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .title {
    font-size: 2rem;
    display: none !important;
    margin-bottom: 20px;
  }

  .title-simple {
    display: block !important;
    font-size: 1.6rem;
    margin-bottom: 0;
    text-align: center;
  }

  .right-panel {
    width: 100%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide photos on mobile except one */
  .photo-2, .photo-3, .photo-4, .photo-5, .photo-6 {
    display: none !important;
  }

  .photo-1 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
  }

  /* Hide decorative elements on mobile */
  .floating-hearts {
    display: none;
  }

  .sparkles {
    display: none;
  }

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

  .forgot-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .form-control {
    font-size: 16px;
  }

  .continue-btn, .nav-btn {
    font-size: 14px;
  }

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

  .step-circle {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .step-text {
    display: none;
  }

  .step-divider {
    width: 12px;
  }

  .code-input {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .code-input-container {
    gap: 8px;
  }

  .password-requirements {
    padding: 12px;
  }

  .password-requirements h4 {
    font-size: 13px;
  }

  .password-requirements li {
    font-size: 11px;
  }

  .success-icon {
    font-size: 3rem;
  }

  .success-content h3 {
    font-size: 20px;
  }

  .success-content p {
    font-size: 13px;
  }
}

/* Very small mobile devices */
@media (max-width: 480px) {
  .left-panel {
    padding: 15px 10px;
    min-height: 20vh;
  }

  .title-simple {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .forgot-password-modal {
    padding: 15px;
    width: 95vw;
    max-height: 85vh;
  }

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

  .forgot-title {
    font-size: 16px;
    margin-bottom: 15px;
  }

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

  .continue-btn, .nav-btn {
    padding: 10px;
    font-size: 13px;
  }

  .welcome-text {
    font-size: 11px;
  }

  .form-group label {
    font-size: 12px;
  }

  .step-description p {
    font-size: 12px;
  }

  .code-input {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .code-input-container {
    gap: 5px;
  }

  .back-link {
    font-size: 12px;
  }

  .resend-code {
    font-size: 12px;
  }

  .resend-btn {
    font-size: 12px;
  }
}

/* Extra adjustments for specific mobile resolutions */
@media (max-width: 400px) {
  .title-simple {
    font-size: 1.2rem;
  }

  .left-panel {
    min-height: 18vh;
    padding: 10px 8px;
  }

  .forgot-password-modal {
    padding: 12px 10px;
  }

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

  .code-input {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 600px) {
  body {
    overflow: auto;
  }

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

  .left-panel {
    min-height: 25vh;
    padding: 15px 20px;
  }

  .right-panel {
    height: auto;
    min-height: 75vh;
  }

  .forgot-password-modal {
    position: absolute;
    max-height: 85vh;
  }

  .title-simple {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

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

/* Desktop hover effects */
@media (min-width: 769px) {
  .nav-btn:hover, .continue-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .step-text {
    display: block;
    font-size: 11px;
  }

  .step-divider {
    width: 20px;
  }

  .code-input-container {
    gap: 12px;
  }

  .code-input {
    width: 55px;
    height: 55px;
    font-size: 26px;
  }

  .resend-btn:hover {
    text-decoration: underline;
  }
}

/* Focus visible for better accessibility */
.form-control:focus-visible,
.continue-btn:focus-visible,
.nav-btn:focus-visible,
.code-input:focus-visible {
  outline: 2px solid #5bc0de;
  outline-offset: 2px;
}