html, body {
    height: 100%;
}

.login-container {
  max-width: 920px;
  width: 100%;
  padding: 2.5rem 1rem;
  box-sizing: border-box;
}

.image-section {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-section img {
    max-width: 100%;  /* Ensure the image does not exceed the container's width */
    max-height: 100%; /* Ensure the image does not exceed the container's height */
    object-fit: cover; /* Ensures the image fills the container without distortion */
    border-radius: 0px;
}

.social-icons a {
    font-size: 24px;
    margin: 0 10px;
    color: #555;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #007bff;
}


* {
padding: 0;
margin: 0;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-sizing: border-box;
display: block;
background-color: #0e4166;
background-image: linear-gradient(to bottom, rgba(14, 65, 102, 0.86), #0e4166);
}


body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('../img/document_background2.png') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 29, 77, 0.6), rgba(21, 57, 134, 0.45));
  backdrop-filter: blur(2px);
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 30px rgba(3,7,18,0.45);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.login-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(3,7,18,0.5); }

.card-inner { text-align: center; width:100%; }
.login-card.simple .card-inner { max-width: 360px; margin: 0 auto; }

.logo-wrapper { 
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  animation: slideDown 0.6s ease-out;
}

.card-inner .logo { 
  width: 100px; 
  height: 100px; 
  object-fit: contain; 
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.25));
  transition: transform 0.3s ease;
}

.card-inner .logo:hover {
  transform: scale(1.05);
}

.system-title { 
  color: #fff; 
  font-size: 1.5rem; 
  margin: 12px 0 6px; 
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle { 
  color: #bfdbfe; 
  font-size: 0.9rem; 
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.field { text-align: left; margin-bottom: 0.9rem; }
.field label { display:block; color:#e6f0ff; font-weight:600; margin-bottom:8px; font-size:0.95rem; letter-spacing: 0.2px; }

.form-meta { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin: 16px 0 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.form-meta .remember {
  color: #bfdbfe;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.form-meta .remember:hover {
  color: #fff;
}

.form-meta .remember input {
  margin-right: 6px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.form-meta .forgot { 
  color: #bfdbfe; 
  text-decoration: none; 
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.form-meta .forgot:hover {
  color: #fff;
}

.form-meta .forgot::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
  transition: width 0.3s ease;
}

.form-meta .forgot:hover::after {
  width: 100%;
}

.form-control { width:100%; padding:12px 42px 12px 38px; border-radius:10px; border:none; background: rgba(255,255,255,0.04); color:#fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.02); box-sizing: border-box; }
.input-wrapper { position:relative; }
.input-wrapper i { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#bfe0ff; }
.input-wrapper .toggle-password { position:absolute; right:10px; top:50%; transform:translateY(-50%); background:transparent; border:none; color:#bfe0ff; }
.btn.primary { 
  width: 100%; 
  padding: 14px 16px; 
  border-radius: 10px; 
  background: linear-gradient(90deg, #2563eb, #1e40af); 
  border: none; 
  color: #fff; 
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn.primary::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.primary:hover {
  background: linear-gradient(90deg, #1d4ed8, #1e3a8a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn.primary:hover::before {
  left: 100%;
}

.btn.primary:active {
  transform: translateY(0px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn.primary i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.btn.primary:hover i {
  transform: translateX(2px);
}
.social-links.small { 
  display: flex; 
  justify-content: center; 
  gap: 12px; 
  margin-top: 20px;
}

.social-links.small a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.social-links.small a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-links.small a:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 16px;
  font-size: 0.85rem;
  color: #7dd3fc;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-text {
  color: #061e41;
  font-size: 0.8rem;
  margin-top: 24px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

label {
  font-weight: 600;
  color: #f0f9ff;
  font-size: 0.88rem;
  margin-bottom: 0.22rem;
  display: block;
}

.input-group {
  margin-bottom: 0.9rem;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #1a2f4b;
  font-size: 1.1rem;
}

.input-wrapper .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #7dd3fc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  z-index: 2;
  transition: all 0.3s ease;
}

.input-wrapper .toggle-password:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.input-wrapper .toggle-password:focus {
  outline: none;
  color: #fff;
}

.form-control {
  width: 100%;
  padding: 12px 48px 12px 42px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.04);
  backdrop-filter: blur(2px);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18), 0 0 0 3px rgba(59,130,246,0.12);
}

.form-control::placeholder {
  color: #bcc4dfff;
}

.btn {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  width: 100%;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(59,130,246,0.4);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn i {
  font-size: 1.1rem;
  color: #e0f2fe;
  transition: transform 0.3s ease, color 0.3s ease;
  
}

.btn:hover {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  color: #000000ff;
}

.btn:hover i {
  color: #000000ff;
}

.social-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

  .remember input { margin-right: 0.45rem; transform: translateY(1px); }

/* animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-card {
  animation: fadeIn 0.8s ease-out;
}

/* smaller screens: center login-right contents */
@media (max-width: 850px) {
  .login-right { padding-left: 0; align-items: stretch; }
  .input-wrapper i { left: 10px; }
  .input-wrapper .toggle-password { right: 8px; }
  
  .system-title {
    font-size: 1.2rem;
  }
  
  .btn.primary {
    padding: 12px 14px;
    font-size: 1rem;
  }
  
  .social-links.small a {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

.social-links a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(59,130,246,0.4);
}

@media (max-width: 850px) {
  .login-card {
    flex-direction: column;
    height: auto;
    width: 90%;
    padding: 2rem;
  }
  .login-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .login-right {
    padding-left: 0;
    align-items: center;
  }
  .login-subtext {
    text-align: center;
  }
}