* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('bg.png') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.login-container {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  padding: 40px 30px 20px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.login-container img {
  width: 160px;
  height: 160px;
  margin-bottom: 10px;
}

.login-container h1 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 10px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1em;
  outline: none;
}

.login-container input::placeholder {
  color: rgba(255,255,255,0.5);
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.password-wrapper .toggle-eye {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
}

.forgot-password {
  text-align: right;
  display: block;
  margin-top: 6px;
  font-size: 0.9em;
  color: #60a5fa;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-container button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border: none;
  border-radius: 10px;
  background-color: #3b82f6;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.login-container button:hover {
  background-color: #2563eb;
}

.register-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9em;
  color: #60a5fa;
  text-decoration: none;
}

.register-link:hover {
  text-decoration: underline;
}

.error-message {
  color: #ff4c4c;
  margin-top: 12px;
  font-size: 0.95em;
  min-height: 0;
  line-height: 1.2em;
}

.hidden {
  display: none;
}

.license-details {
  text-align: left;
  background: rgba(255,255,255,0.1);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9em;
}

.license-details p {
  margin: 4px 0;
}

.back-login-wrap {
  margin-top: 10px;
  font-size: 0.85em;
}