/* new */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
.login-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
}

/* LEFT PANEL */
.login-left-panel {
  flex: 1;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-left-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.login-left-panel::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  bottom: -80px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.login-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.login-hero-content h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
  background: linear-gradient(to right, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 1s ease-out 0.3s both;
}

.login-hero-content > p {
  font-size: 18px;
  opacity: 0.95;
  line-height: 1.7;
  max-width: 500px;
  color: #e0e7ff;
  animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-features {
  max-width: 700px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  animation: slideUp 0.6s ease-out both;
}

.login-feature-card:nth-child(1) {
  animation-delay: 0.7s;
}
.login-feature-card:nth-child(2) {
  animation-delay: 0.85s;
}
.login-feature-card:nth-child(3) {
  animation-delay: 1s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-feature-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.login-feature-card:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.login-feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.login-feature-card:hover .login-feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.login-feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.login-feature-card p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.login-footer {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* RIGHT PANEL */
.login-right-panel {
  flex: 1;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.login-box {
  width: 100%;
  max-width: 380px;
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* LOGO */
.login-logo-section {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.login-logo-display {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* LOGIN HEADER */
.login-header {
  text-align: center;
  margin-bottom: 28px;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.login-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.5px;
}

/* FORM */
.login-form-group {
  margin-bottom: 18px;
  animation: slideInRight 0.6s ease-out both;
}

.login-form-group:nth-child(1) {
  animation-delay: 0.4s;
}
.login-form-group:nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.login-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 7px;
}

.login-input-wrapper {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}

.login-input {
  width: 100%;
  padding: 11px 40px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s;
  outline: none;
  background: #f8fafc;
  color: #1e293b;
}

.login-input::placeholder {
  color: #94a3b8;
}

.login-input:focus {
  border-color: #2563ebb0;
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.login-input.error {
  border-color: #ef4444b5;
}

.login-error-message {
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  display: block;
  font-weight: 500;
}

.login-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  z-index: 1;
}

.login-password-toggle:hover {
  color: #2563eb;
}

.login-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.login-submit-btn:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.login-submit-btn:active {
  transform: translateY(0);
}

.login-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.login-mobile-footer {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

/* MOBILE FEATURES */
.login-mobile-features {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .login-container {
    flex-direction: column;
  }

  .login-left-panel {
    display: none;
  }

  .login-right-panel {
    padding: 20px;
  }

  .login-box {
    max-width: 480px;
  }

  /* Show mobile features on tablet only */
  .login-mobile-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
    animation: fadeIn 0.8s ease-out 0.7s both;
  }

  .login-mobile-feature {
    text-align: center;
    animation: slideUp 0.5s ease-out both;
  }

  .login-mobile-feature:nth-child(1) {
    animation-delay: 0.8s;
  }
  .login-mobile-feature:nth-child(2) {
    animation-delay: 0.9s;
  }
  .login-mobile-feature:nth-child(3) {
    animation-delay: 1s;
  }

  /* Reuse slideUp animation from left side */
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .login-mobile-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #2563eb;
  }

  .login-mobile-feature h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1e293b;
  }

  .login-mobile-feature p {
    font-size: 11px;
    margin: 0;
    color: #64748b;
    line-height: 1.4;
  }
}

@media (max-width: 640px) {
  /* Hide mobile features on mobile screens */
  .login-mobile-features {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-right-panel {
    padding: 16px;
  }

  .login-box {
    padding: 28px 20px;
    max-width: 400px;
  }

  .login-logo-display {
    width: 70px;
    height: 70px;
  }

  .login-header h2 {
    font-size: 22px;
  }

  .login-form-group {
    margin-bottom: 16px;
  }

  .login-input {
    padding: 10px 38px;
    font-size: 13px;
  }

  .login-input-icon svg,
  .login-password-toggle svg {
    width: 18px;
    height: 18px;
  }

  .login-submit-btn {
    padding: 11px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .login-box {
    padding: 24px 16px;
  }

  .login-logo-display {
    width: 60px;
    height: 60px;
  }

  .login-header h2 {
    font-size: 20px;
  }
}

/* modal login */

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show {
  opacity: 1;
}

/* Login Modal */
/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show {
  opacity: 1;
}

/* Login Modal */
.login-modal-trasition {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.login-modal {
  max-width: 440px;
  margin: 1.75rem auto;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.login-modal .modal-content {
  max-width: 450px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #ffffff;
  background-clip: padding-box;
  border: none;
  border-radius: 20px;
  outline: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.login-modal .modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 3rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.login-modal .modal-login-logo {
  margin-bottom: 2rem;
}

.login-modal .modal-login-logo img {
  width: 80px;
  height: auto;
}

/* Heading */
.login-modal .modal-body h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Form Label */
.login-modal .modal-login-form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  text-align: left;
  width: 100%;
}

/* Form Controls Container */
.login-modal .modal-login-form-contols-container {
  width: 100%;
  margin-bottom: 1.25rem;
}

.login-modal .modal-login-form-contols {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.login-modal .modal-login-form-contols:focus-within {
  border-color: #4169e1;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.login-modal .modal-login-form-contols .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  color: #9e9e9e;
  flex-shrink: 0;
  background-color: transparent;
}

.login-modal .modal-login-form-contols .icon svg {
  width: 18px;
  height: 18px;
  stroke: #9e9e9e;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-modal .modal-login-form-contols .form-control {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.9rem 1rem 0.9rem 0;
  font-size: 0.95rem;
  color: #1a1a1a;
  outline: none;
  font-family: inherit;
}
.login-modal .modal-login-form-contols .form-control:-webkit-autofill,
.login-modal .modal-login-form-contols .form-control:-webkit-autofill:hover,
.login-modal .modal-login-form-contols .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important; /* background */
  -webkit-text-fill-color: #000000 !important; /* text color */
  transition: background-color 5000s ease-in-out 0s;
}

.login-modal .modal-login-form-contols .form-control:focus {
  border-color: none !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.login-modal .modal-login-form-contols .form-control::placeholder {
  color: #b0b0b0;
}

.login-modal .modal-login-form-contols .icon.password-toggle {
  cursor: pointer;
  padding: 0 1rem;
  transition: color 0.2s;
}

.login-modal .modal-login-form-contols .icon.password-toggle:hover {
  color: #757575;
}

/* Error Messages */
.login-modal .login-modal-required {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  padding-left: 0.25rem;
  font-weight: 500;
}

/* Login Button */
.login-modal .login-button {
  width: 100%;
  background: #4169e1;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  height: 54px;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-modal .login-button:hover {
  background: #365ac4;
  transform: translateY(-1px);
}

.login-modal .login-button:active {
  transform: translateY(0);
}

.login-modal .login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-modal .login-button.login-loader {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.login-modal .login-button.login-loader::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spinner 0.8s linear infinite;
}

.login-modal .login-button .arrow-icon {
  transition: transform 0.3s ease;
}

.login-modal .login-button:hover .arrow-icon {
  transform: translateX(3px);
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Version Text */
.login-modal .modal-version {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #9e9e9e;
  text-align: center;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 576px) {
  .login-modal {
    max-width: 100%;
    margin: 0;
  }

  .login-modal .modal-content {
    border-radius: 0;
  }

  .login-modal .modal-body {
    padding: 2rem 1.5rem;
  }

  .login-modal .modal-body h1 {
    font-size: 1.5rem;
  }

  .login-modal .modal-login-logo img {
    width: 70px;
  }
}

/* login image skelton */
.login-logo-skeleton {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
