html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, rgba(15, 20, 28, 0.95) 0%, rgba(25, 30, 42, 0.95) 100%), #0a0f16;
  color: #e0e0e0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Large LAIRCCVAM text in background */
body::before {
  content: "LAIRCCVAM";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  z-index: 0;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 10px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #1a1a2e; /* Navy blue scrollbar */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #16213e;
}

/* Container to center the login card */
.login-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  background: 
    url('resources/images/card.png'),
    url('resources/images/bin.png');
  background-size: 40px 40px, 30px 30px;
  background-position: 0 0, 20px 20px;
  background-repeat: repeat;
  background-blend-mode: soft-light;
  position: relative;
  z-index: 1;
}

/* Login header with logo */
.login-header {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(140, 199, 255, 0.3));
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 4px 8px rgba(140, 199, 255, 0.3)); }
  50% { filter: drop-shadow(0 4px 12px rgba(140, 199, 255, 0.6)); }
}

.brand-name {
  font-size: 26px;
  font-weight: 700;
  color: #8cc7ff;
  margin: 0 0 4px 0;
  letter-spacing: 2.5px;
  text-shadow: 0 0 10px rgba(140, 199, 255, 0.4);
}

.brand-tagline {
  font-size: 12px;
  color: #8fa0b3;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Input groups with icons */
.input-group {
  margin-bottom: 10px;
}

.input-with-icon {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 14px;
  top: 48%;
  transform: translateY(-50%);
  color: #6d7f91;
  pointer-events: none;
  z-index: 1;
}

.input-with-icon input {
  padding-right: 45px;
}

/* Frosted glass effect for card */
.card {
  background: rgba(25, 30, 42, 0.75);
  padding: 18px 18px;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  border: 1px solid rgba(90, 100, 120, 0.5);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
  z-index: 2;
  zoom: 0.8;
}

h2 {
  text-align: center;
  margin: 0 0 12px 0;
  font-size: 18px;
  color: #e0e0ff;
  letter-spacing: 1px;
  font-weight: 600;
}

label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #b0b0d0;
}

input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(90, 100, 120, 0.4);
  background: rgba(20, 25, 35, 0.6);
  color: #e0e0ff;
  margin-bottom: 10px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-size: 13px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

input::placeholder {
  color: #7a7a9e; /* Themed placeholder color */
  font-size: 12px; /* Smaller font size */
  font-style: normal; /* Non-italic */
}

input:focus {
  border-color: rgba(140, 199, 255, 0.5);
  background: rgba(25, 30, 42, 0.7);
  box-shadow: 0 0 0 2px rgba(140, 199, 255, 0.3);
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(18, 18, 40, 0.7) inset !important;
  -webkit-text-fill-color: #e0e0ff !important;
  caret-color: #e0e0ff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: rgba(20, 25, 35, 0.6);
  color: #8cc7ff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 1px;
  font-size: 15px;
  margin-top: 8px;
  border: 1px solid rgba(90, 100, 120, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.btn:hover {
  background: rgba(25, 30, 42, 0.7);
  border-color: rgba(140, 199, 255, 0.5);
  color: #8cc7ff;
}

.captcha-row {
  display: flex;
  gap: 10px; /* Consistent gap */
  align-items: center; /* Center alignment for both elements */
  margin-top: 6px;
  margin-bottom: 16px; /* Consistent spacing */
}

.captcha-box {
  background: rgba(20, 25, 35, 0.6);
  color: #e0e0ff;
  border: 1px solid rgba(90, 100, 120, 0.4);
  border-radius: 8px;
  padding: 0 16px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  min-width: 110px;
  box-sizing: border-box;
  font-size: 15px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.captcha-input-container {
  position: relative;
  flex: 1;
}

.captcha-refresh {
  position: absolute;
  right: 10px; /* Slightly more spacing */
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #8888cc;
  font-size: 18px;
  cursor: pointer;
  width: 26px; /* Slightly larger */
  height: 26px; /* Slightly larger */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px; /* Match input rounding */
  padding: 0;
  transition: none;
}

.captcha-refresh:hover {
  background: rgba(42, 42, 78, 0.7);
  color: #aabbff;
}

.captcha-row input {
  height: 42px;
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(90, 100, 120, 0.4);
  background: rgba(20, 25, 35, 0.6);
  color: #e0e0ff;
  padding: 0 14px;
  padding-right: 45px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-size: 13px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.captcha-row input::placeholder {
  color: #7a7a9e;
  font-size: 12px; /* Smaller font size */
  font-style: normal; /* Non-italic */
}

.captcha-row input:focus {
  border-color: rgba(140, 199, 255, 0.5);
  background: rgba(25, 30, 42, 0.7);
  box-shadow: 0 0 0 2px rgba(140, 199, 255, 0.3);
}

/* Bottom text styling */
.bottom-text {
  margin-top: 8px;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.text-muted {
  font-size: 11.5px;
  color: #6d7f91;
  margin: 0 0 6px 0;
}

.register-link {
  display: inline;
  color: #8cc7ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  transition: color 0.2s ease;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.register-link:hover {
  color: #a3d4ff;
  background: transparent;
  transform: none;
  text-decoration: underline;
}

.msg-response {
  margin-top: 15px;
  font-size: 13px;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
}

/* Success message styling */
.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 15, 31, 0.7);
  border: 1px solid rgba(26, 26, 46, 0.7);
  border-radius: 8px;
  padding: 12px;
  margin: 15px 0;
  color: #6abf6a; /* Softer green to match the theme */
  font-weight: 500;
  font-size: 15px;
}

.success-message img {
  width: 20px;
  height: 20px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal .inner {
  background: rgba(25, 30, 42, 0.9);
  padding: 30px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  color: #e0e0ff;
  border: 1px solid rgba(90, 100, 120, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.3);
  color: #ff6666;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.close-modal:hover {
  background: rgba(255, 60, 60, 0.2);
  border-color: rgba(255, 60, 60, 0.5);
  transform: scale(1.05);
}

.modal .inner h3 {
  font-size: 20px;
  margin: 0 0 8px 0;
  color: #8cc7ff;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.3px;
}

.modal .inner p {
  font-size: 13px;
  color: #a0a5b8;
  margin: 0 0 20px 0;
  text-align: center;
  line-height: 1.4;
}

.modal .inner input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(90, 100, 120, 0.4);
  border-radius: 8px;
  background: rgba(20, 25, 35, 0.6);
  color: #e0e0ff;
  font-size: 14px;
  margin-bottom: 12px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal .inner input::placeholder {
  color: #7a7a9e;
  font-size: 13px;
}

.modal .inner input:focus {
  border-color: rgba(140, 199, 255, 0.5);
  background: rgba(25, 30, 42, 0.7);
  box-shadow: 0 0 0 3px rgba(140, 199, 255, 0.1);
}

#secretError {
  font-size: 13px;
  color: #ff6666;
  text-align: center;
  margin: 8px 0;
  min-height: 20px;
}

.modal .inner button.copyBtn,
.modal .inner #confirmSecret {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: rgba(20, 25, 35, 0.6);
  color: #8cc7ff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
  font-size: 15px;
  border: 1px solid rgba(90, 100, 120, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-family: 'Inter', sans-serif;
}

.modal .inner button.copyBtn:hover,
.modal .inner #confirmSecret:hover {
  background: rgba(25, 30, 42, 0.7);
  border-color: rgba(140, 199, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(140, 199, 255, 0.15);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #ff4444;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.close-modal:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
  color: #ff6666;
}

/* Secret modal with transparent style */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9); /* Semi-transparent overlay */
  z-index: 1000;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal .inner {
  background: rgba(15, 15, 25, 0.9); /* Semi-transparent background */
  padding: 18px;
  border-radius: 12px;
  max-width: 380px;
  width: 90%;
  color: #e0e0ff;
  border: 1px solid rgba(42, 42, 78, 0.7);
  box-shadow: 0 0 20px rgba(26, 26, 78, 0.4);
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}

.modal .inner h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
}

.modal .inner p {
  font-size: 12px;
  margin: 0 0 12px 0;
  color: #b0b0d0;
  text-align: center;
}

.copyBtn {
  background: rgba(15, 15, 37, 0.8); /* Semi-transparent background */
  color: #d0d0f0;
  border: 1px solid rgba(42, 42, 78, 0.7);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: none;
  font-weight: 500;
}

.copyBtn:hover {
  background: rgba(42, 42, 78, 0.9);
  border-color: rgba(58, 58, 110, 0.7);
  color: #ffffff;
}

#secretInput {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(42, 42, 78, 0.7);
  background: rgba(15, 15, 37, 0.8); /* Semi-transparent background */
  color: #e0e0ff;
  margin-bottom: 10px;
  outline: none;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: none;
  font-style: normal;
}

#secretInput::placeholder {
  color: #7a7a9e;
  font-size: 14px;
  font-style: normal;
}

#secretInput:focus {
  border-color: #3a3a6e;
  background: rgba(15, 15, 37, 0.9);
  box-shadow: 0 0 0 2px rgba(58, 58, 110, 0.3);
}

#secretError {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
}

/* Footer styles for login page */
.footer {
  background-color: #000000;
  color: #8a9ac5;
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(26, 26, 46, 0.7);
  font-size: 13.5px;
  font-weight: 400;
  width: 100%;
  position: relative;
  line-height: 1.6;
  letter-spacing: 0.2px;
  box-sizing: border-box;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer .brand {
  color: #a0b0e0;
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 6px;
  transition: none;
}

/* remove hover color */
.footer .brand:hover {
  color: #a0b0e0;
}

/* TEXT FIX */
.footer p {
  margin: 4px 0;
  line-height: 1.5;
  font-size: 13.5px;
  color: #8a9ac5;
  font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body::before {
    font-size: 80px;
    letter-spacing: 5px;
  }
  
  .login-container {
    padding: 20px 15px;
  }
  
  .card {
    padding: 20px 18px;
    max-width: 95%;
  }
  
  .login-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  
  .brand-name {
    font-size: 24px;
    letter-spacing: 2px;
  }
  
  .brand-tagline {
    font-size: 11px;
  }
  
  h2 {
    font-size: 18px;
    margin-bottom: 14px;
  }
  
  .input-group {
    margin-bottom: 12px;
  }
  
  input {
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 12px;
  }
  
  .input-with-icon input {
    padding-right: 40px;
  }
  
  .input-icon {
    right: 12px;
    width: 16px;
    height: 16px;
  }
  
  label {
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  .btn {
    padding: 10px;
    font-size: 14px;
  }
  
  .bottom-text {
    margin-top: 12px;
    padding-top: 10px;
  }
  
  .text-muted {
    font-size: 11px;
  }
  
  .register-link {
    font-size: 12px;
    padding: 6px 16px;
  }
}

@media (max-width: 480px) {
  body::before {
    font-size: 60px;
    letter-spacing: 3px;
  }
  
  .login-container {
    padding: 15px 10px;
  }
  
  .card {
    padding: 18px 16px;
  }
  
  .brand-name {
    font-size: 22px;
  }
  
  .brand-tagline {
    font-size: 10px;
  }
  
  h2 {
    font-size: 17px;
  }
  
  input, .captcha-row input {
    font-size: 13px;
    padding: 9px 11px;
  }
  
  .btn {
    font-size: 13px;
    padding: 9px;
  }
}