.login-page {
  background: linear-gradient(135deg, #f0f8ff 0%, #e0f4ff 50%, #f5f9ff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* ==================== ANIMATED BACKGROUND ==================== */
.login-page::before {
  content: "";
  position: fixed;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(255, 102, 0, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: floatBubble1 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.login-page::after {
  content: "";
  position: fixed;
  bottom: -30%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(14, 58, 114, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: floatBubble2 25s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes floatBubble1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-50px, 100px) scale(1.1);
  }
  50% {
    transform: translate(50px, 200px) scale(0.9);
  }
  75% {
    transform: translate(-30px, 150px) scale(1.05);
  }
}

@keyframes floatBubble2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(80px, -100px) scale(1.15);
  }
  66% {
    transform: translate(-60px, -50px) scale(0.95);
  }
}

/* ==================== CONTAINER ==================== */
.login-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  background: var(--login-white-color);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: visible;
  position: relative;
  z-index: 1;
  animation: slideUp 0.8s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== LEFT SECTION ==================== */
.login-left-section {
  flex: 1;
  background:  linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  padding: 60px 50px;
  color: var(--login-white-color);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 24px 0 0 24px;
}

/* Animated Pattern Background */
.login-left-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(255, 102, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 102, 0, 0.08) 0%,
      transparent 50%
    );
  z-index: 0;
  animation: patternPulse 10s ease-in-out infinite;
}

@keyframes patternPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Diagonal Lines */
.login-left-section::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 200%;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255, 102, 0, 0.06) 40px,
    rgba(255, 102, 0, 0.06) 42px
  );
  z-index: 0;
  animation: lineMove 20s linear infinite;
}

@keyframes lineMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(80px);
  }
}

.login-main-heading {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.login-highlight-text {
  color: var(--login-primary-color);
  position: relative;
  display: inline-block;
}

.login-highlight-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  
  animation: underlineExpand 1s ease forwards;
  animation-delay: 0.5s;
  transform: scaleX(0);
  transform-origin: left;
}

@keyframes underlineExpand {
  to {
    transform: scaleX(1);
  }
}

.login-description-text {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

/* Stats Card */
.login-stats-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  z-index: 1;
}

.login-stats-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--login-transition);
}

.login-stats-row:last-child {
  border-bottom: none;
}

.login-stats-row:hover {
  transform: translateX(10px);
  color: #ffff;
}

.login-stats-row i {
  font-size: 1.5rem;
  color: var(--login-primary-color);
  width: 40px;
  height: 40px;
  background: rgba(255, 102, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--login-transition);
}

.login-stats-row:hover i {
  background: var(--login-primary-color);
  color: var(--login-white-color);
  transform: rotate(360deg);
}

.login-stats-row span {
  font-size: 1rem;
  font-weight: 500;
}

/* ==================== RIGHT SECTION (STATIC LAYOUT) ==================== */
.login-right-section {
  flex: 1;
  padding: 60px 50px 30px 50px;
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 500px;
}

/* FIXED: Static heading position */
.login-heading {
  position: absolute;
  top: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.login-heading > h2 {
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  color: var(--login-text-dark-color);
  white-space: nowrap;
  text-align: center;
  margin: 0;
}

.login-heading > h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--login-primary-color);
  border-radius: 2px;
}

/* ==================== FORM STYLES (STATIC LAYOUT) ==================== */
#loginForm {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
}

/* Tab Buttons */
.login-tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: var(--login-light-bg-color);
  padding: 5px;
  border-radius: var(--login-border-radius);
}

.login-tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--login-text-dark-color);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--login-transition);
}

.login-tab-btn.active {
  background: var(--login-white-color);
  color: var(--login-primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.login-tab-btn:hover:not(.active) {
  color: var(--login-primary-dark-color);
}

/* ==================== USERNAME SECTION (FIXED HEIGHT) ==================== */
#username {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: var(--login-border-radius);
  font-size: 0.95rem;
  color: var(--login-text-dark-color);
  transition: var(--login-transition);
  background: var(--login-white-color);
  margin-bottom: 8px;
}

#username:focus {
  outline: none;
  border-color: var(--login-primary-color);
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
}

#username.error {
  border-color: var(--login-error-color);
  animation: shake 0.3s ease;
}

#username::placeholder {
  color: #aaa;
}

#usernameError {
  color: var(--login-error-color);
  font-size: 0.85rem;
  min-height: 22px;
  margin-bottom: 18px;
  display: none;
  align-items: center;
  gap: 8px;
}

#usernameError.show {
  display: flex;
}

#usernameError i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ==================== DYNAMIC CONTENT AREA (FIXED HEIGHT) ==================== */
/* This section maintains a fixed height regardless of OTP or Password mode */
.login-dynamic-section {
  min-height: var(--login-dynamic-section-height);
  position: relative;
}

/* ==================== OTP SECTION ==================== */
.login-checkbox-container {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.login-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--login-text-dark-color);
  font-size: 0.9rem;
  user-select: none;
}

.login-checkbox-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--login-primary-color);
}

.login-otp-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 22px 0 16px 0;
}

.login-otp-input {
  width: 55px;
  height: 55px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  border: 2px solid #e0e0e0;
  border-radius: var(--login-border-radius);
  transition: var(--login-transition);
  margin: 0;
  padding: 0;
}

.login-otp-input:focus {
  outline: none;
  border-color: var(--login-primary-color);
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
  transform: scale(1.05);
}

.login-otp-input.error {
  border-color: var(--login-error-color);
  animation: shake 0.3s ease;
}

.login-otp-success-message {
  text-align: center;
  color: var(--login-success-color);
  font-size: 0.9rem;
  min-height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeIn 0.3s ease;
  margin-bottom: 16px;
}

.login-otp-success-message.show {
  display: flex;
}

.login-otp-success-message i {
  font-size: 1.2rem;
}

.login-resend-text {
  text-align: center;
  color: var(--login-primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 24px;
  transition: var(--login-transition);
  user-select: none;
}

.login-resend-text:hover:not(.disabled) {
  text-decoration: underline;
  color: var(--login-primary-dark-color);
}

.login-resend-text.disabled {
  color: var(--login-text-light-color);
  cursor: not-allowed;
  pointer-events: none;
}

/* ==================== PASSWORD SECTION ==================== */
#password {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: var(--login-border-radius);
  font-size: 0.95rem;
  color: var(--login-text-dark-color);
  transition: var(--login-transition);
  background: var(--login-white-color);
  margin-bottom: 8px;
}

#password:focus {
  outline: none;
  border-color: var(--login-primary-color);
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.1);
}

#password.error {
  border-color: var(--login-error-color);
  animation: shake 0.3s ease;
}

#password::placeholder {
  color: #aaa;
}

#passwordError {
  color: var(--login-error-color);
  font-size: 0.85rem;
  min-height: 22px;
  margin-bottom: 18px;
  display: none;
  align-items: center;
  gap: 8px;
}

#passwordError.show {
  display: flex;
}

#passwordError i {
  font-size: 1rem;
  flex-shrink: 0;
}

.login-forgot-link {
  color: var(--login-primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--login-transition);
}

.login-forgot-link:hover {
  text-decoration: underline;
  color: var(--login-primary-dark-color);
}

/* ==================== ANIMATIONS ==================== */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== SUBMIT BUTTON ==================== */
.login-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--login-primary-color) 0%,
    var(--login-primary-dark-color) 100%
  );
  color: var(--login-white-color);
  border: none;
  border-radius: var(--login-border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--login-transition);
  margin-top: 25px;
  position: relative;
  overflow: hidden;
}

.login-submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.login-submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

.login-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* ==================== FOOTER LINKS ==================== */
.login-register-container {
  text-align: center;
  margin-top: 25px;
  color: #000000;
  font-size: 0.95rem;
}

.login-register-link {
  color: var(--login-primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--login-transition);
}

.login-register-link:hover {
  text-decoration: underline;
  color: var(--login-primary-dark-color);
}

.login-social-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.login-social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--login-light-bg-color);
  color: var(--login-text-dark-color);
  font-size: 1.1rem;
  transition: var(--login-transition);
  text-decoration: none;
}

.login-social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.login-social-link.facebook:hover {
  background: #1877f2;
  color: var(--login-white-color);
}

.login-social-link.instagram:hover {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  color: var(--login-white-color);
}

.login-social-link.linkedin:hover {
  background: #0077b5;
  color: var(--login-white-color);
}

.login-social-link.twitter:hover {
  background: #1da1f2;
  color: var(--login-white-color);
}

/* ==================== TOASTER NOTIFICATION ==================== */
.login-toaster {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--login-white-color);
  color: var(--login-text-dark-color);
  padding: 16px 24px;
  border-radius: var(--login-border-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  animation: slideInToast 0.3s ease;
  min-width: 300px;
  max-width: 400px;
}

@keyframes slideInToast {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.login-toaster.show {
  display: flex;
}

.login-toaster.success {
  border-left: 4px solid var(--login-success-color);
}

.login-toaster.error {
  border-left: 4px solid var(--login-error-color);
}

.login-toaster.info {
  border-left: 4px solid var(--login-primary-color);
}

.login-toaster-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-toaster-icon i {
  font-size: 1.3rem;
}

.login-toaster.success .login-toaster-icon {
  color: var(--login-success-color);
}

.login-toaster.error .login-toaster-icon {
  color: var(--login-error-color);
}

.login-toaster.info .login-toaster-icon {
  color: var(--login-primary-color);
}

.login-toaster-message {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 968px) {
  .login-container {
    flex-direction: column;
  }

  .login-left-section {
    padding: 40px 30px;
    border-radius: 24px 24px 0 0;
  }

  .login-main-heading {
    font-size: 2rem;
  }

  .login-right-section {
    padding: 80px 30px 40px 30px;
    max-width: 100%;
  }

  .login-heading {
    top: 30px;
  }

  .login-heading > h2 {
    font-size: 1.75rem;
  }

  #loginForm {
    margin-top: 80px;
  }
}

@media (max-width: 640px) {
  .login-page {
    padding: 10px;
  }

  .login-container {
    border-radius: 16px;
  }

  .login-left-section {
    padding: 30px 20px;
  }

  .login-main-heading {
    font-size: 1.75rem;
  }

  .login-description-text {
    font-size: 1rem;
  }

  .login-stats-card {
    padding: 20px;
  }

  .login-right-section {
    padding: 70px 20px 30px 20px;
  }

  .login-heading {
    top: 20px;
  }

  .login-heading > h2 {
    font-size: 1.5rem;
  }

  #loginForm {
    margin-top: 70px;
  }

  .login-otp-input {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .login-toaster {
    right: 10px;
    left: 10px;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .login-otp-container {
    gap: 8px;
  }

  .login-otp-input {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .login-social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}