/* Reset and base styles */
* {
  box-sizing: border-box;
}

/* Full page layouts - Only for OTP pages */
body.fullpage-layout,
body.otp-login-page,
body.otp-register-page,
body.otp-register-complete-page,
body.otp-page {
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

body.fullpage-layout html,
body.otp-login-page html,
body.otp-register-page html,
body.otp-register-complete-page html,
body.otp-page html {
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* FORCE HIDE ALL DRUPAL ELEMENTS */
body.fullpage-layout .layout-container,
body.fullpage-layout .page-wrapper,
body.fullpage-layout .dialog-wrapper,
body.fullpage-layout #header,
body.fullpage-layout .header,
body.fullpage-layout #navigation,
body.fullpage-layout .navigation,
body.fullpage-layout #sidebar-first,
body.fullpage-layout #sidebar-second,
body.fullpage-layout .sidebar,
body.fullpage-layout #footer,
body.fullpage-layout .footer,
body.fullpage-layout .breadcrumb,
body.fullpage-layout .tabs,
body.fullpage-layout .action-links,
body.fullpage-layout .messages,
body.fullpage-layout .region-header,
body.fullpage-layout .region-navigation,
body.fullpage-layout .region-sidebar-first,
body.fullpage-layout .region-sidebar-second,
body.fullpage-layout .region-footer,
body.fullpage-layout .toolbar,
body.fullpage-layout .contextual-links,
body.fullpage-layout .page-header,
body.fullpage-layout .page-footer,
body.fullpage-layout .site-header,
body.fullpage-layout .site-footer,
body.fullpage-layout .main-menu,
body.fullpage-layout .secondary-menu,
body.otp-login-page .layout-container,
body.otp-login-page .page-wrapper,
body.otp-login-page #header,
body.otp-login-page .header,
body.otp-login-page #footer,
body.otp-login-page .footer,
body.otp-login-page .toolbar,
body.otp-register-page .layout-container,
body.otp-register-page .page-wrapper,
body.otp-register-page #header,
body.otp-register-page .header,
body.otp-register-page #footer,
body.otp-register-page .footer,
body.otp-register-page .toolbar,
body.otp-register-complete-page .layout-container,
body.otp-register-complete-page .page-wrapper,
body.otp-register-complete-page #header,
body.otp-register-complete-page .header,
body.otp-register-complete-page #footer,
body.otp-register-complete-page .footer,
body.otp-register-complete-page .toolbar,
body.otp-page .layout-container,
body.otp-page .page-wrapper,
body.otp-page #header,
body.otp-page .header,
body.otp-page #footer,
body.otp-page .footer,
body.otp-page .toolbar {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* Fullpage wrapper */
.fullpage-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10000 !important;
  overflow: hidden !important;
  background: #fff !important;
}

.page-wrapper.fullpage-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  z-index: 10000 !important;
  overflow: hidden !important;
}

/* Show only our fullpage content */
body.fullpage-layout .fullpage-wrapper,
body.fullpage-layout .fullpage-wrapper *,
body.otp-login-page .fullpage-wrapper,
body.otp-login-page .fullpage-wrapper *,
body.otp-register-page .fullpage-wrapper,
body.otp-register-page .fullpage-wrapper *,
body.otp-register-complete-page .fullpage-wrapper,
body.otp-register-complete-page .fullpage-wrapper * {
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
}

/* OTP Container - New Structure */
.otp-fullpage-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 10000 !important;
  overflow: hidden !important;
  background: #fff !important;
}

.otp-container {
  display: flex !important;
  width: 100vw !important;
  height: 100vh !important;
  position: relative !important;
  overflow: hidden !important;
}

.otp-left-column {
  flex: 1 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
  min-height: 100vh !important;
}

.otp-left-column::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 0%) 10%, rgb(0 0 0 / 10%) 100%);
  z-index: 1;
}

/* Home Button Styles */
.home-button-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
  background: rgba(255, 255, 255, 1);
  color: #007bff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.home-button i {
  font-size: 16px;
}

.otp-right-column {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  min-height: 100vh !important;
  position: relative !important;
  padding: 40px !important;
}

.otp-form-wrapper {
  width: 100% !important;
  max-width: 400px !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Form Container - No white box, no shadow */
.form-container {
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

#login-container .logo,
#register-container .logo{
  text-align:center;
  margin-bottom:20px;
}

#login-container .logo img,
#register-container .logo img{
  max-width: 100%;
  width: 300px;
}

.resendButtonsBox{
  display:flex;
  /* margin: 0px 10px; */
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.form-header h2 {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.step-header {
  text-align: center;
  margin-bottom: 25px;
}

.step-header h3 {
  color: #333;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px 0;

}

.step-description {
  color: #666;
  font-size: 14px;
  margin: 0;

}

/* Step containers for AJAX transitions */
.step-container {
  transition: all 0.3s ease;
  display: none;
}

.step-container.active {
  opacity: 1;
  transform: translateX(0);
  display: block;
}

/* Form Groups and Inputs */
.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  height: 50px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 12px 45px 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
  direction: ltr;
  text-align: left;
  background: #fff;

}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
  outline: none;
}

.form-control.valid {
  border-color: #28a745;
  background-color: #f8fff9;
}

.form-control.error {
  border-color: #dc3545;
  background-color: #fff8f8;
}

.form-control::placeholder {
  color: #adb5bd;
  font-size: 0.95rem;

}

/* Input Icons */
.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 18px;
}

.form-control:focus + .input-icon {
  color: #007bff;
}

.form-control.valid + .input-icon {
  color: #28a745;
}

.form-control.error + .input-icon {
  color: #dc3545;
}

/* OTP Input Special Styling */
.otp-input {
  text-align: center !important;
  font-size: 24px !important;
  font-weight: 600;
  letter-spacing: 8px;
}

/* Buttons */
.btn {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;

}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.btn-default {
  background: #f8f9fa;
  border: 2px solid #e1e5e9;
  color: #495057;
}

.btn-default:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

/* Button Loading State */
.btn-loading {
  display: none;
}

.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Countdown Container */
.countdown-container {
  margin: 20px 0;
  text-align: center;
}

.countdown-display {
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;

}

.countdown-timer {
  font-weight: 600;
  color: #007bff;
  font-size: 16px;
}

.countdown-timer.expired {
  color: #dc3545;
}

.countdown-progress .progress {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
}

.countdown-progress .progress-bar {
  background: #007bff;
  transition: width 1s linear;
  height: 100%;
}

/* Verification Info */
.verification-info {
  background: #e7f3ff;
  border: 1px solid #b8daff;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.verification-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
  text-align: center;

}

.verification-info strong {
  color: #007bff;
  font-weight: 600;
}

.mobile-display {
  font-weight: 600;
  color: #007bff;
}

/* Form Links */
.form-links {
  text-align: center;
  margin-top: 20px;
}

.form-links a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;

}

.form-links a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.register-link {
  color: #007bff !important;
  text-decoration: none !important;
}

.register-link.highlight-register {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 25px !important;
  font-weight: bold !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
  animation: pulse-register 2s infinite !important;
  transform: scale(1.05) !important;
  transition: all 0.3s ease !important;
}

@keyframes pulse-register {
  0% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  }
  50% {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  }
}

.edit-mobile-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Alert Messages */
.alert-container {
  margin-top: 20px;
}

.alert {
  border-radius: 6px;
  border: none;
  font-size: 14px;
  padding: 12px;
  margin-bottom: 10px;

}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
}

/* Radio buttons for gender selection */
.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;

}

.required {
  color: #dc3545;
}

.form-radios {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
  min-width: 80px;
  justify-content: center;

}

.radio-label:hover {
  border-color: #007bff;
  background: #f8f9ff;
}

.radio-label.selected {
  border-color: #007bff;
  background: #007bff;
  color: white;
}

.radio-label input[type="radio"] {
  margin-left: 8px;
  margin-right: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .otp-container {
    flex-direction: column !important;
  }

  .otp-left-column {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1 !important;
  }

  .otp-right-column {
    position: relative !important;
    z-index: 2 !important;
    background: rgb(255 255 255) !important;
    backdrop-filter: blur(10px) !important;
    padding: 20px !important;
  }

  .otp-form-wrapper {
    margin: 20px !important;
    max-width: none !important;
  }

  .form-radios {
    flex-direction: column;
    gap: 10px;
  }

  .radio-label {
    min-width: auto;
  }

  /* Home button responsive */
  .home-button-container {
    top: 15px;
    left: 15px;
  }

  .home-button {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .home-button i {
    font-size: 14px;
  }

  /* Login/Register notes responsive */
  .login-register-notes {
    margin-top: 20px;
    padding: 15px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .otp-right-column {
    padding: 15px !important;
  }

  .otp-form-wrapper {
    margin: 10px !important;
  }

  .form-header h2 {
    font-size: 24px;
  }

  .step-header h3 {
    font-size: 20px;
  }

  /* Home button for very small screens */
  .home-button-container {
    top: 10px;
    left: 10px;
  }

  .home-button {
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
  }

  .home-button i {
    font-size: 12px;
  }

  /* Login/Register notes for very small screens */
  .login-register-notes {
    margin-top: 15px;
    padding: 12px;
    font-size: 12px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
  animation: fadeOut 0.3s ease-in-out;
}

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

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

/* Login/Register Notes Styles */
.login-register-notes {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #6c757d;
}

.login-register-notes h1,
.login-register-notes h2,
.login-register-notes h3,
.login-register-notes h4,
.login-register-notes h5,
.login-register-notes h6 {
  color: #495057;
  margin-top: 0;
  margin-bottom: 10px;
}

.login-register-notes p {
  margin-bottom: 10px;
}

.login-register-notes p:last-child {
  margin-bottom: 0;
}

.login-register-notes ul,
.login-register-notes ol {
  margin-bottom: 10px;
  padding-right: 20px;
}

.login-register-notes li {
  margin-bottom: 5px;
}

.login-register-notes a {
  color: #007bff;
  text-decoration: none;
}

.login-register-notes a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.login-register-notes strong {
  color: #495057;
}

/* Resend OTP Button Styles */
.btn-warning {
  background-color: #f0ad4e;
  border-color: #eea236;
  color: #fff;
  margin-top: 10px;
}

.btn-warning:hover:not(:disabled) {
  background-color: #ec971f;
  border-color: #d58512;
  color: #fff;
}

.btn-warning:active {
  background-color: #d58512;
  border-color: #985f0d;
}

.btn-warning:disabled {
  background-color: #f7f7f7;
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
}

#resend-otp-btn, #send-bale-otp-btn,
.resend-button {
  margin: 10px 5px;
  transition: all 0.3s ease;
}

#resend-otp-btn:hover:not(:disabled),
.resend-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(240, 173, 78, 0.3);
} 