* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-image: url('../assets/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 20, 50, 0.75) 0%, rgba(0, 40, 80, 0.65) 100%);
  z-index: 0;
}

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  padding: 40px 40px 20px;
  text-align: center;
}

.logo-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #0a2540, #1a4a7a);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.3);
}

.logo-icon svg {
  width: 32px;
  height: 32px;
}

.card-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #0a2540;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.card-header p {
  font-size: 14px;
  color: #5a6d80;
  font-weight: 400;
}

.card-body {
  padding: 10px 40px 30px;
}

.card-body form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-body .input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-body label {
  font-size: 13px;
  font-weight: 500;
  color: #2c3e50;
  letter-spacing: 0.2px;
}

#username,
#password,
#token {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1.5px solid #dce3ea;
  border-radius: 10px;
  background: #f8fafc;
  color: #1a2b3c;
  transition: all 0.25s ease;
  outline: none;
  font-family: inherit;
}

#username:focus,
#password:focus,
#token:focus {
  border-color: #1a4a7a;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(26, 74, 122, 0.08);
}

#username::placeholder,
#password::placeholder,
#token::placeholder {
  color: #a0b0c0;
  font-weight: 400;
}

.login-btn {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #0a2540 0%, #1a4a7a 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
  font-family: inherit;
}

.login-btn:hover {
  background: linear-gradient(135deg, #0d2f50 0%, #1f5a90 100%);
  box-shadow: 0 8px 25px rgba(10, 37, 64, 0.4);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.3);
}

.card-footer {
  padding: 20px 40px;
  text-align: center;
  border-top: 1px solid #eef2f6;
  background: #f9fbfd;
}

.card-footer span {
  font-size: 12px;
  color: #7a8b9e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-footer span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

.brand-info {
  margin-top: 24px;
  text-align: center;
}

.brand-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.3px;
  font-weight: 400;
}

@media (max-width: 480px) {
  .login-wrapper {
    padding: 16px;
  }
  .card-header {
    padding: 30px 24px 16px;
  }
  .card-body {
    padding: 10px 24px 24px;
  }
  .card-footer {
    padding: 16px 24px;
  }
  .card-header h1 {
    font-size: 22px;
  }
}