﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f8f9fa;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../../img/loginbg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: 0;
}

.split-login {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.login-left {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(248, 249, 250, 0.85);
  min-height: 100vh;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.login-left::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.login-card {
  width: 100%;
  max-width: 450px;
  padding: 2.5rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
}

.login-logo {
  display: block;
  margin: 0 0 1.75rem 0;
  height: 60px;
  width: auto;
  object-fit: contain;
}

.login-header {
  margin-bottom: 2rem;
}

.login-title {
  font-size: 1.75rem;
  font-weight: 600;
  text-align: left;
  margin: 0 0 0.75rem 0;
  color: #1a1a1a;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  text-align: left;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.form-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.15);
}

.input-group-text {
  border-radius: 0 8px 8px 0;
  border: 1px solid #dee2e6;
  border-left: none;
}

.input-group .form-control {
  border-radius: 8px 0 0 8px;
}

.show-hide-icon {
  cursor: pointer;
  color: #6c757d;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.show-hide-icon:hover {
  color: #495057;
}

.login-inline-help {
  font-size: 0.9rem;
  color: #6c757d !important;
  font-weight: 400;
}

.login-inline-forgot {
  font-size: 0.75rem;
  color: #7c3aed !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.login-inline-forgot:hover {
  color: #5b21b6 !important;
  text-decoration: underline;
}

.btn-login {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: #7c3aed !important;
  border: none !important;
  color: #fff !important;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: #5b21b6 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  color: #fff !important;
}

.btn-login:focus,
.btn-login:active,
.btn-login.active {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #fff !important;
  box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
}

.btn-login:disabled,
.btn-login.disabled {
  background: #7c3aed !important;
  opacity: 0.65;
  color: #fff !important;
}

.mb-3 {
  margin-bottom: 1.25rem !important;
}

.mb-2 {
  margin-bottom: 1rem !important;
}

.alert {
  border-radius: 8px;
  font-size: 0.9rem;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #6c757d;
  font-size: 0.85rem;
}

.login-right {
  background: rgba(248, 249, 250, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.slider-img {
  width: 92%;
  max-width: 580px;
  aspect-ratio: 515 / 696;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slider-img.active {
  opacity: 1;
  z-index: 2;
}

@media (max-width: 991px) {
  .login-left {
    padding: 1.5rem 1rem;
  }

  .login-left::after {
    display: none;
  }

  .login-card {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .login-header {
    margin-bottom: 1.75rem;
  }

  .login-title {
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .login-left {
    padding: 1rem 0.75rem;
  }

  .login-card {
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
  }

  .login-logo {
    height: 50px;
    margin-bottom: 1.5rem;
  }

  .login-header {
    margin-bottom: 1.5rem;
  }

  .login-title {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
  }

  .subtitle {
    font-size: 0.875rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  .form-control {
    font-size: 0.9rem;
    padding: 0.65rem 0.9rem;
  }

  .btn-login {
    font-size: 0.95rem;
    padding: 0.7rem 1.25rem;
  }

  .login-inline-help {
    font-size: 0.85rem;
  }

  .login-inline-forgot {
    font-size: 0.7rem;
  }

  .login-footer {
    font-size: 0.8rem;
  }
}

/* Notification Toast */
.notification-toast {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 420px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-toast.show {
  top: 20px;
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.notification-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid #7c3aed;
  animation: slideDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon i {
  font-size: 1.25rem;
  color: #7c3aed;
}

.notification-text {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.notification-message {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.notification-close:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 576px) {
  .notification-toast {
    width: 95%;
    max-width: 100%;
  }

  .notification-toast.show {
    top: 15px;
  }

  .notification-content {
    padding: 0.875rem 1rem;
    gap: 0.75rem;
  }

  .notification-icon {
    width: 36px;
    height: 36px;
  }

  .notification-icon i {
    font-size: 1.1rem;
  }

  .notification-title {
    font-size: 0.9rem;
  }

  .notification-message {
    font-size: 0.8rem;
  }
}
