
  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #eaf0fb, #d5e5ff, #a3cdfd, #e6f7ff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  @keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
  }

  body::before {
    content: "";
    position: absolute;
    inset: 0;
background-image: url('../images/pk-logo.jpg');
    background-repeat: repeat;
    background-size: 150px;
    opacity: 0.08;
    z-index: 0;
animation: moveLogos4Way 10s linear infinite;
  }

  @keyframes moveLogos4Way {
  0% { background-position: -300px 0; }
  25% { background-position: 300px 0; }
  25.01% { background-position: 300px 0; }
  50% { background-position: -300px 0; }
  50.01% { background-position: 0 -300px; }
  75% { background-position: 0 300px; }
  75.01% { background-position: 0 300px; }
  100% { background-position: 0 -300px; }
}


  header {
    position: absolute;
    top: 0;
    width: 100%;
    background-color: #003366;
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

 .skip-animations {
  transform: translateY(0px) rotate(0deg);
}


 .login-box {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 10px 25px;
  border-radius: 80px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 90%;
  max-width: 380px;
  min-height: 100px;
  max-height: 100vh;
  height: auto;
  overflow-y: auto;
  z-index: 2;
  transition: all 0.3s ease;
}

.login-box {
  margin-top: 50px;   
}
  .login-box.expanded {
    max-width: 420px;
    padding: 30px 35px;
  }

  .login-box h2 {
    margin-bottom: 25px;
    color: #0057b3;
    font-size: 36px;
  }

  input, select {
    width: 90%;
    padding: 15px;
    margin: 10px 0;
    font-size: 16px;
    border-radius: 55px;
    border: 1px solid #ccc;
    outline: none;
    transition: border 0.3s;
  }

  input:focus, select:focus {
    border-color: #007bff;
  }

  button {
    background-color: #007bff;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
  }



  button:hover {
    background-color: #0056b3;
  }

  .error {
    color: red;
    font-size: 14px;
    margin-top: 8px;
  }

  .success {
    color: green;
    font-size: 14px;
    margin-top: 8px;
  }

  input:disabled, select:disabled {
    background-color: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    border-color: #ddd !important;
  }

  button:disabled {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
  }

 /* Password field with toggle */
.password-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Remove browser default password reveal button */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-contacts-auto-fill-button {
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    user-select: none;
}


  /* Mode switching buttons */
  .mode-switch {
    margin-top: 15px;
    font-size: 14px;
  }

  .mode-switch a {
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
  }

   .mode-switch a:hover {
    text-decoration: underline;
  }

  /* Forgot Password & Update Email Links - Left Right */
  .password-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .password-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
  }

 .password-links a:hover {
    text-decoration: underline;
  }




  /* Step headers */
  .step-header {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #0057b3;
  }

  /* Radio buttons for password type */
  .radio-group {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
  }

  .radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .radio-option input[type="radio"] {
    width: auto;
    margin: 0;
  }

  /* Password feedback */
  .password-feedback {
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
    padding-left: 15px;
  }

  /* Voice Toggle Button */
 .voice-toggle-container {
  position: absolute;
  top: -8px;
  right: 20px;
  z-index: 100;
}



  .voice-toggle-btn {
    background: #28a745;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  }

  .voice-toggle-btn.voice-off {
    background: #dc3545;
  }

  .voice-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.4);
  }

  #voiceText {
    display: none;
  }

  .voice-icon {
    font-size: 20px;
  }

    @media (max-width: 420px) {
    header {
      font-size: 16px;
      padding: 10px;
    }

    .login-box {
      padding: 25px 20px;
    }

    .login-box h2 {
      font-size: 22px;
    }

    .password-links {
      flex-direction: column;
      gap: 12px;
      padding: 0;
    }
  }


  @keyframes gravityFall {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(300px) rotate(10deg); }
    70% { transform: translateY(-20px) rotate(-5deg); }
    85% { transform: translateY(10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
  }

  @keyframes gentleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(0.5deg); }
  }
/* NEW: Email Validation Feedback */
.email-feedback {
  font-size: 12px;
  margin-top: 5px;
  text-align: left;
  padding-left: 15px;
}

/* NEW: OTP Timer */
.otp-timer {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 10px;
  margin: 15px 0;
  font-size: 14px;
  font-weight: bold;
  color: #856404;
  text-align: center;
}

/* NEW: Resend Button - Blue Gradient */
.resend-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  padding: 12px !important;
  border-radius: 25px !important;
  font-size: 16px !important;
  cursor: pointer !important;
  margin-top: 10px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.resend-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.5);
}

.resend-btn:disabled {
  background: #cccccc !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
  transform: none !important;
}


/* NEW: Recovery Options */
.recovery-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.recovery-option-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border: 2px solid transparent;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 16px;
  width: 100%;
}

.recovery-option-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  border-color: #667eea;
}

.option-icon {
  font-size: 40px;
}

.option-title {
  font-size: 18px;
  font-weight: bold;
}

.option-desc {
  font-size: 13px;
  opacity: 0.9;
}

/* NEW: Current Email Display */
.current-email-display {
  background-color: #e7f3ff;
  border: 2px solid #007bff;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

/* NEW: Button Variants */
.btn-primary {
  background-color: #28a745 !important;
  margin-bottom: 10px;
}

.btn-primary:hover {
  background-color: #218838 !important;
}

.btn-secondary {
  background-color: #dc3545 !important;
}

.btn-secondary:hover {
  background-color: #c82333 !important;
}

/* NEW: Current Security Questions Display */
.current-security-display {
  background-color: #f8f9fa;
  border: 2px solid #6c757d;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.current-security-display p {
  line-height: 1.6;
}

.current-security-display span {
  color: #007bff;
  font-weight: 600;
}
/* ===== LOGIN PAGE PROFESSIONAL ANIMATION ===== */

/* Header slide-down animation */
@keyframes slideDownFade {
  0% {
    transform: translateY(-40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-animate {
  animation: slideDownFade 1s ease-in-out both;
}

/* Login box - float + blur entry */
@keyframes floatBlur {
  0% {
    transform: translateY(40px);
    filter: blur(6px);
    opacity: 0;
  }
  70% {
    filter: blur(2px);
  }
  100% {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
}

.animate-on-load {
  animation: floatBlur 1s ease-out both;
}

/* Login button - soft pop-in */
@keyframes softPop {
  0% { transform: scale(0.9); opacity: 0; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.btn-animate {
  animation: softPop 1s ease-out both;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
