* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
}

body {
  background: url("../images/laptopbackground.png") no-repeat center center / cover;
  background-color: #05060b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.35);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 1;
  pointer-events: none;
}

.login-card {
  position: relative;
  width: min(100%, 380px);
  padding: 30px;
  border-radius: 20px;
  background: rgba(23, 26, 39, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  z-index: 2;
  animation: fadeIn 0.6s ease;
}

.logo {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1;
}

.logo span:first-child {
  color: #ffffff;
}

.logo span:last-child {
  color: #a78bfa;
}

h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 5px;
  font-size: 28px;
  font-weight: 700;
}

.sub {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 20px;
}

.input-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.input-box i {
  color: #8b5cf6;
  margin-right: 10px;
  font-size: 18px;
}

.input-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  width: 100%;
  font-size: 14px;
}

.input-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.options {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 15px;
}

.options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.options input {
  accent-color: #8b5cf6;
}

.options a {
  color: #8b5cf6;
  text-decoration: none;
  white-space: nowrap;
}

.login-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  color: #ffffff;
  font-weight: 500;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.footer {
  text-align: center;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.footer a {
  color: #c4b5fd;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #ddd6fe;
  text-decoration: underline;
}

#error {
  font-size: 13px;
  min-height: 1.2em;
}

.custom-select {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 15px;
  cursor: pointer;
  z-index: 10;
}

.custom-select .selected {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.custom-select .options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(23, 26, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  margin-top: 5px;
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 20;
}

.custom-select .options.open {
  max-height: 150px;
}

.custom-select .options li {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-select .options li:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #ffffff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body {
    padding: 12px 16px 20px;
    background-image: url("../images/background.png");
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100svh;
    align-items: center;
  }

  .login-card {
    width: 100%;
    max-width: 95%;
    padding: 28px 22px;
    margin: 0 auto;
  }

  h2 {
    font-size: 26px;
    margin-bottom: 3px;
  }

  .sub {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .input-box {
    margin-bottom: 14px;
    padding: 10px 12px;
  }

  .login-btn {
    padding: 12px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px 12px 16px;
  }

  .login-card {
    max-width: 100%;
    padding: 24px 18px;
    border-radius: 16px;
  }

  .logo {
    font-size: 32px;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 26px;
  }

  .sub {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .input-box {
    margin-bottom: 12px;
    padding: 9px 11px;
  }

  .input-box i {
    font-size: 17px;
    margin-right: 9px;
  }

  .input-box input {
    font-size: 14px;
  }

  .login-btn {
    padding: 11px;
    font-size: 14px;
    gap: 8px;
  }

  .footer {
    margin-top: 12px;
    font-size: 12px;
  }

  .options {
    flex-direction: column;
    align-items: flex-start;
  }
}