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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #050505;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 40px 36px;
  animation: fadeUp 0.5s ease;
}

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

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #00e676, #69f0ae);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,230,118,0.2);
}

.login-header h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.login-subtitle {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  margin-top: 4px;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .input-icon {
  position: absolute;
  left: 14px;
  color: rgba(255,255,255,0.15);
  font-size: 14px;
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
  border-color: #00e676;
  box-shadow: 0 0 0 3px rgba(0,230,118,0.15);
  background: rgba(255,255,255,0.05);
}

.input-group input::placeholder {
  color: rgba(255,255,255,0.15);
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #000000 inset;
  -webkit-text-fill-color: #fff;
}

.toggle-pw {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
  transition: color 0.2s;
}

.toggle-pw:hover { color: rgba(255,255,255,0.5); }

/* Alert */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  animation: shakeX 0.4s ease;
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.alert-error {
  background: rgba(211,47,47,0.15);
  border: 1px solid rgba(211,47,47,0.3);
  color: #ef9a9a;
}

/* Button */
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00e676, #69f0ae);
  border: none;
  border-radius: 12px;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  position: relative;
  margin-top: 4px;
}

.btn-login:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,230,118,0.3);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner { font-size: 16px; }
.hidden { display: none; }

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 28px;
}

.demo-badge-login {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,230,118,0.12);
  color: #00e676;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.login-hint {
  color: rgba(255,255,255,0.15);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card { padding: 28px 20px; }
}
