* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  height: 100vh;
}

.login-wrapper {
  position: relative;
  min-height: 100vh;
  background: url("assets/images/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.85),
    rgba(0, 0, 0, 0.152)
  );
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #222;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  border-color: #5a8f95;
  box-shadow: 0 0 0 2px rgba(90,143,149,0.15);
}

.password-group {
  position: relative;
}

.password-group i {
  position: absolute;
  right: 12px;
  top: 40px;
  cursor: pointer;
  color: #888;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.form-row a {
  color: #ff6b8f;
  text-decoration: none;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox input {
  display: none;
}

.checkbox span {
  width: 16px;
  height: 16px;
  border: 1px solid #999;
  border-radius: 3px;
  position: relative;
}

.checkbox input:checked + span {
  background: #ff6b8f;
  border-color: #ff6b8f;
}

.checkbox input:checked + span::after {
  content: "✔";
  position: absolute;
  color: #fff;
  font-size: 11px;
  top: -1px;
  left: 3px;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: #ff6b8f;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #ff6b9088;
}

.divider {
  text-align: center;
  margin: 18px 0;
  font-size: 13px;
  color: #777;
}

.btn-google {
  width: 100%;
  padding: 11px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.btn-google i {
  margin-right: 6px;
}

.register-text {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.register-text a {
  color: #5a8f95;
  text-decoration: none;
  font-weight: 600;
}
  /* Preloader styles */
            #preloader {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: white;
                z-index: 9999;
                display: flex;
                justify-content: center;
                align-items: center;
                transition: opacity 0.5s ease-out;
            }
            
            .loader-container {
                display: flex;
                flex-direction: column;
                align-items: center;
                position: relative;
            }

            .true-match-logo {
                position: relative;
                height: 120px;
                width: 120px;
                margin-bottom: 16px;
            }

            /* Logo components - SVG approach for precision */
            .logo-svg {
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
            }

            /* Loading animation */
            .left-path {
                stroke: url(#left-gradient);
                stroke-width: 12px;
                fill: none;
                stroke-linecap: round;
                stroke-opacity: 0.9;
                animation: draw-left 2.5s infinite;
            }

            .right-path {
                stroke: url(#right-gradient);
                stroke-width: 12px;
                fill: none;
                stroke-linecap: round;
                stroke-opacity: 0.9;
                animation: draw-right 2.5s infinite;
            }

            @keyframes draw-left {
                0% {
                    stroke-dasharray: 200;
                    stroke-dashoffset: 200;
                    opacity: 0.7;
                }
                50% {
                    stroke-dasharray: 200;
                    stroke-dashoffset: 0;
                    opacity: 1;
                }
                100% {
                    stroke-dasharray: 200;
                    stroke-dashoffset: -200;
                    opacity: 0.7;
                }
            }

            @keyframes draw-right {
                0% {
                    stroke-dasharray: 200;
                    stroke-dashoffset: -200;
                    opacity: 0.7;
                }
                50% {
                    stroke-dasharray: 200;
                    stroke-dashoffset: 0;
                    opacity: 1;
                }
                100% {
                    stroke-dasharray: 200;
                    stroke-dashoffset: 200;
                    opacity: 0.7;
                }
            }

            .logo-text {
                font-size: 28px;
                font-weight: 700;
                color: #000;
                letter-spacing: 0.5px;
                margin-top: 10px;
                text-align: center;
                animation: pulse 2s ease infinite;
                font-family: 'Montserrat', sans-serif;
            }

            @keyframes pulse {
                0%, 100% {
                    opacity: 0.8;
                }
                50% {
                    opacity: 1;
                }
            }

            /* Progress dots animation */
            .loading-dots {
                display: flex;
                margin-top: 15px;
            }

            .dot {
                width: 8px;
                height: 8px;
                margin: 0 4px;
                border-radius: 50%;
                animation: dot-animation 1.5s infinite ease-in-out;
            }

            .dot-1 {
                background: #ff4b7d;
                animation-delay: 0s;
            }

            .dot-2 {
                background: #ff7e5f;
                animation-delay: 0.3s;
            }

            .dot-3 {
                background: #ffa94d;
                animation-delay: 0.6s;
            }

            @keyframes dot-animation {
                0%, 100% {
                    transform: scale(1);
                    opacity: 0.5;
                }
                50% {
                    transform: scale(1.3);
                    opacity: 1;
                }
            }

            /* Progress loader */
            .progress-container {
                width: 120px;
                height: 4px;
                background-color: #f0f0f0;
                border-radius: 2px;
                margin-top: 16px;
                overflow: hidden;
            }

            .progress-bar {
                height: 100%;
                width: 0%;
                background: linear-gradient(to right, #ff4b7d, #ffa94d);
                border-radius: 2px;
                transition: width 0.2s ease;
            }
            
            /* Page content fade-in animations */
            .fade-in {
                opacity: 0;
                transform: translateY(20px);
                transition: opacity 0.8s ease, transform 0.8s ease;
            }
            
            .fade-in.active {
                opacity: 1;
                transform: translateY(0);
            }
            
            /* Staggered delays for sequential fading */
            .delay-1 {
                transition-delay: 0.2s;
            }
            
            .delay-2 {
                transition-delay: 0.4s;
            }
            
            .delay-3 {
                transition-delay: 0.6s;
            }
            
            .delay-4 {
                transition-delay: 0.8s;
            }
            
            .delay-5 {
                transition-delay: 1s;
            }
