/* ============================================
   Login Page Styling (Modern Dual-Panel & Premium UX)
   ============================================ */

.login-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2f7 0%, #e3edfc 50%, #d8e6ff 100%);
  position: relative;
  overflow: hidden;
  padding: 24px;
  box-sizing: border-box;
}

/* Background floating glow spheres */
.login-container::before,
.login-container::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.login-container::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.25) 0%, rgba(66, 133, 244, 0) 70%);
  top: -150px;
  left: -150px;
  filter: blur(50px);
}

.login-container::after {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(90, 150, 255, 0.2) 0%, rgba(90, 150, 255, 0) 70%);
  bottom: -100px;
  right: -100px;
  filter: blur(50px);
}

/* Dual Panel Card */
.login-card {
  display: flex;
  width: 100%;
  max-width: 960px;
  min-height: 560px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
  overflow: hidden;
  animation: loginFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loginFadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Left Hero Branding Panel (Desktop) */
.login-hero {
  flex: 1.1;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.login-hero-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-hero-logo {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-hero-logo .material-symbols-rounded {
  font-size: 28px;
  color: #ffffff;
}

.login-hero-brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.login-hero-content h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color: #ffffff;
}

.login-hero-content p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.login-hero-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.login-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.login-feature-item .material-symbols-rounded {
  font-size: 20px;
  color: #93c5fd;
}

.login-hero-footer {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* Right Form Panel */
.login-form-panel {
  flex: 1;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.login-form-header {
  margin-bottom: 32px;
}

.login-mobile-logo {
  display: none;
  width: 56px;
  height: 56px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.login-mobile-logo .material-symbols-rounded {
  font-size: 30px;
}

.login-form-title {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.login-form-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
}

/* Form inputs & labels */
.login-form .form-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.login-form .form-label {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-bottom: 8px !important;
  text-align: left !important;
  display: block !important;
  width: 100%;
}

.login-form .form-control {
  width: 100%;
  height: 50px;
  padding: 12px 18px;
  font-size: 16px !important;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.login-form .form-control::placeholder {
  color: #94a3b8;
  font-size: 15px;
}

.login-form .form-control:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: none;
}

/* Custom Checkbox */
.login-remember {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 28px;
  cursor: pointer;
  user-select: none;
}

.login-remember input[type="checkbox"] {
  display: none;
}

.login-remember .custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #ffffff;
  flex-shrink: 0;
}

.login-remember .custom-checkbox .material-symbols-rounded {
  font-size: 16px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.login-remember input[type="checkbox"]:checked + .custom-checkbox {
  background: #2563eb;
  border-color: #2563eb;
}

.login-remember input[type="checkbox"]:checked + .custom-checkbox .material-symbols-rounded {
  opacity: 1;
  transform: scale(1);
}

.login-remember .remember-text {
  color: #475569;
  font-size: 15px;
  font-weight: 500;
}

.login-btn {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: 17px !important;
  font-weight: 600 !important;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Input with icons & Password Toggle */
.input-with-icon {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 22px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-with-icon .form-control {
  padding-left: 46px !important;
  padding-right: 46px !important;
}

.input-with-icon .form-control:focus + .input-icon,
.input-with-icon .form-control:focus ~ .input-icon {
  color: #2563eb;
}

.btn-toggle-pwd {
  position: absolute;
  right: 6px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.btn-toggle-pwd:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.login-mobile-footer {
  display: none;
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 860px) {
  .login-container {
    padding: 16px;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 40%, #1e3a8a 100%);
    align-items: center;
  }

  .login-card {
    max-width: 440px;
    min-height: auto;
    flex-direction: column;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  }

  .login-hero {
    display: none;
  }

  .login-form-panel {
    padding: 36px 24px 28px 24px;
    background: #ffffff;
  }

  .login-form-header {
    text-align: center;
  }

  .login-mobile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
  }

  .login-mobile-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
  }

  .login-mobile-icon .material-symbols-rounded {
    font-size: 28px;
  }

  .login-mobile-brand-info {
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  .login-mobile-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
  }

  .login-mobile-brand-sub {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
  }

  .login-form-title {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .login-form-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .login-form .form-control {
    height: 52px;
    font-size: 16px !important;
    border-radius: 14px;
  }

  .login-btn {
    height: 54px;
    font-size: 16px !important;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  }

  .login-mobile-footer {
    display: block;
  }
}
