html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Prevent scroll on login/register pages */
}

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;
  overflow-y: hidden; /* No vertical scroll */
}

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;
}

::-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;
}

.register-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;
}

/* Register header with logo */
.register-header {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.register-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;
}

.optional {
  font-size: 12px;
  color: #6d7f91;
  font-weight: 300;
}

/* 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;
  font-size: 20px; 
  letter-spacing: 1px; 
  color: #e0e0ff;
  font-weight: 600;
}

h3 { 
  margin: 0 0 12px 0;
  font-size: 17px; 
  color: #d0d0f0;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}

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;
  transition: all 0.2s ease;
  box-sizing: border-box;
  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);
}

.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;
}

.login-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;
}

.login-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;
}

/* Success Modal - Compact Single-Line Design */
.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-box {
  background: rgba(25, 30, 42, 0.75);
  padding: 16px;
  border-radius: 12px;
  max-width: 325px;
  width: 90%;
  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;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 60, 60, 0.1);
  border: 1px solid rgba(255, 60, 60, 0.3);
  color: #ff6666;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.close-btn:hover {
  background: rgba(255, 60, 60, 0.2);
  border-color: rgba(255, 60, 60, 0.5);
}

.success-header {
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.check-icon {
  margin: 0 auto 4px;
  display: block;
}

.success-header h2 {
  font-size: 15px;
  margin: 0;
  color: #8cc7ff;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.credentials {
  margin-bottom: 8px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cred-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cred-icon {
  color: #6d7f91;
  flex-shrink: 0;
}

.cred-label {
  color: #8fa0b3;
  font-size: 11px;
  font-weight: 500;
  min-width: 65px;
  flex-shrink: 0;
}

.cred-value {
  flex: 1;
  color: #e0e0ff;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  word-break: break-all;
  margin: 0 6px;
}

.copy-btn {
  background: rgba(140, 199, 255, 0.1);
  border: 1px solid rgba(140, 199, 255, 0.3);
  color: #8cc7ff;
  border-radius: 5px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(140, 199, 255, 0.2);
  border-color: rgba(140, 199, 255, 0.5);
  transform: scale(1.05);
}

.modal-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
  flex: 1;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  letter-spacing: 0.3px;
  background: rgba(20, 25, 35, 0.6);
  border: 1px solid rgba(90, 100, 120, 0.4);
  color: #8cc7ff;
}

.action-btn:hover {
  background: rgba(25, 30, 42, 0.7);
  border-color: rgba(140, 199, 255, 0.5);
  transform: translateY(-1px);
}

/* Footer styles for register 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 .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;
  }
  
  .register-container {
    padding: 20px 15px;
  }
  
  .card {
    padding: 20px 18px;
    max-width: 95%;
  }
  
  .register-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  
  .brand-name {
    font-size: 24px;
    letter-spacing: 2px;
  }
  
  .brand-tagline {
    font-size: 11px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 17px;
    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;
  }
  
  .login-link {
    font-size: 12px;
    padding: 6px 16px;
  }
}

@media (max-width: 480px) {
  body::before {
    font-size: 60px;
    letter-spacing: 3px;
  }
  
  .register-container {
    padding: 15px 10px;
  }
  
  .card {
    padding: 18px 16px;
  }
  
  .brand-name {
    font-size: 22px;
  }
  
  .brand-tagline {
    font-size: 10px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  h3 {
    font-size: 16px;
  }
  
  input, .captcha-row input {
    font-size: 13px;
    padding: 9px 11px;
  }
  
  .btn {
    font-size: 13px;
    padding: 9px;
  }
  
  .creds-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .copyBtn.small {
    margin-top: 5px;
  }
}