/* ===================================
   LOGIN PAGE SPECIFIC STYLES
   =================================== */

/* Import main styles */
@import url('main.css');

/* ===================================
   LOGIN PAGE LAYOUT
   =================================== */
.login-page {
  min-height: 100vh;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ===================================
   BACKGROUND CIRCLE RIPPLES (LOGIN)
   =================================== */
.floating-triangles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.triangle-float {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  transform: scale(0.2);
  opacity: 0;
  animation: ripplePulseLogin 10s ease-out infinite;
}

.triangle-float:nth-child(1) {
  top: 5%;
  left: 5%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  border-color: rgba(255, 255, 255, 0.4);
}

.triangle-float:nth-child(2) {
  top: 70%;
  right: 5%;
  width: 80px;
  height: 80px;
  animation-delay: 2.5s;
  border-color: rgba(255, 255, 255, 0.3);
}

.triangle-float:nth-child(3) {
  bottom: 10%;
  left: 10%;
  width: 45px;
  height: 45px;
  animation-delay: 5s;
  border-color: rgba(255, 255, 255, 0.25);
}

.triangle-float:nth-child(4) {
  top: 20%;
  right: 10%;
  width: 55px;
  height: 55px;
  animation-delay: 1.5s;
  border-color: rgba(255, 255, 255, 0.3);
}

.triangle-float:nth-child(5) {
  bottom: 30%;
  left: 70%;
  width: 50px;
  height: 50px;
  animation-delay: 4s;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===================================
   LOGIN CONTAINER (SPLIT SCREEN)
   =================================== */
.login-container {
  background: rgb(255 255 255 / 85%);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  display: flex;
  min-height: 450px;
  animation: slideIn 0.8s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 10;
}

/* ===================================
   LOGIN IMAGE SECTION
   =================================== */
.login-image {
  flex: 1;
  background: rgb(247, 247, 247);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: url('../images/logo.png') center/contain no-repeat;
  opacity: 0.9;
  transition: transform 0.3s ease;
  background-size: 100% auto;
  max-width: 100%;
  max-height: 100%;
}

.login-image:hover::before {
  transform: translate(-50%, -50%) scale(1.05);
}

/* ===================================
   LOGIN FORM SECTION
   =================================== */
.login-form {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h1 {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--gray-medium);
  font-size: 0.95rem;
}

/* ===================================
   LOGIN FORM CONTROLS
   =================================== */
.login-form .form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.login-form .form-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
  z-index: 2;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-medium);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  min-height: 35px;
}

.password-toggle:hover {
  color: var(--primary);
  background: rgba(37, 57, 143, 0.1);
  transform: translateY(-50%) scale(1.1);
}

.login-form .form-control {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid var(--gray-light);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

/* Special padding for password field to accommodate the eye icon */
.login-form .form-group:has(.password-toggle) .form-control {
  padding-right: 50px;
}

/* Alternative selector for browsers that don't support :has() */
.login-form .form-group .form-control[type="password"] {
  padding-right: 50px;
}

.login-form .form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 57, 143, 0.15);
}

.login-form .form-control::placeholder {
  color: var(--gray-medium);
}

/* ===================================
   LOGIN BUTTON
   =================================== */
.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(37, 57, 143, 0.3);
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 57, 143, 0.4);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

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

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===================================
   TOAST NOTIFICATIONS - Now imported from toast.css
   =================================== */

/* ===================================
   LOGO CONTAINER
   =================================== */
.logo-container {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
  background: white;
  padding: 10px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.logo-container img {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.1);
}



/* ===================================
   FOOTER STYLING FOR LOGIN
   =================================== */
/* Footer styles for login page - Override subtle footer */
.login-page .app-footer {
  background: transparent !important;
  backdrop-filter: blur(10px) !important;
}

.login-page .app-footer::before {
  background: rgba(255, 255, 255, 0.3);
  height: 2px;
}

.login-page .app-footer:hover::before {
  background: rgba(255, 255, 255, 0.4);
}

.login-page .footer-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

.login-page .copyright {
  color: rgba(255, 255, 255, 0.8) !important;
}

.login-page .powered-by {
  color: rgba(255, 255, 255, 0.7) !important;
}

.login-page .company-link {
  color: rgba(255, 255, 255, 0.8) !important;
}

.login-page .company-link:hover {
  color: white !important;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes ripplePulseLogin {
  0%, 60% {
    transform: scale(0.2);
    opacity: 0;
  }
  66% {
    transform: scale(0.35);
    opacity: 0.5;
  }
  100% {
    transform: scale(4.5);
    opacity: 0;
  }
}

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

/* Toast animations now imported from toast.css */

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    margin: 1rem;
    min-height: auto;
  }

  .login-image {
    min-height: 200px;
  }

  .login-form {
    padding: 2rem;
  }

  .form-header h1 {
    font-size: 1.75rem;
  }

  .logo-container {
    top: 20px;
    left: 20px;
    padding: 8px;
  }

  .logo-container img {
    height: 60px;
  }

  .password-toggle {
    font-size: 1rem;
    padding: 6px;
    min-width: 30px;
    min-height: 30px;
  }

  .triangle-float {
    border-width: 1.5px;
  }

  .triangle-float:nth-child(1) {
    width: 48px;
    height: 48px;
  }

  .triangle-float:nth-child(2) {
    width: 64px;
    height: 64px;
  }

  .triangle-float:nth-child(3) {
    width: 36px;
    height: 36px;
  }

  .triangle-float:nth-child(4) {
    width: 44px;
    height: 44px;
  }

  .triangle-float:nth-child(5) {
    width: 40px;
    height: 40px;
  }

  @keyframes ripplePulseLogin {
    0%, 60% {
      transform: scale(0.2);
      opacity: 0;
    }
    66% {
      transform: scale(0.35);
      opacity: 0.35;
    }
    100% {
      transform: scale(3.5);
      opacity: 0;
    }
  }

  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .login-form {
    padding: 1.5rem;
  }

  .form-header h1 {
    font-size: 1.5rem;
  }

  .logo-container {
    top: 15px;
    left: 15px;
    padding: 6px;
  }

  .logo-container img {
    height: 50px;
  }

  .triangle-float {
    display: none;
  }

  .password-toggle {
    font-size: 0.9rem;
    padding: 5px;
    min-width: 28px;
    min-height: 28px;
  }
}