* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #2e09df, #1b057a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: #fff;
  width: 100%;
  max-width: 380px;
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
  text-align: center;
  animation: fade .6s ease;
}

@keyframes fade {
  from {opacity:0; transform:translateY(12px)}
  to {opacity:1; transform:translateY(0)}
}

.login-container img {
  max-width: 210px;
  margin-bottom: 20px;
}

h1 {
  font-size: 22px;
  margin-bottom: 25px;
  color: #2e09df;
}

.form-group {
  text-align: left;
  margin-bottom: 18px;
}

label {
  font-size: 14px;
  color: #374151;
}

.input-wrapper {
  position: relative;
}

input {
  width: 100%;
  padding: 12px 44px 12px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  transition: border .2s, box-shadow .2s;
}

input:focus {
  outline: none;
  border-color: #2e09df;
  box-shadow: 0 0 0 2px rgba(46,9,223,.25);
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
}

.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #2e09df;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background .2s, transform .1s;
}

.btn-login:hover {
  background: #2407b5;
}

.btn-login.loading {
  background: #4f46e5;
  pointer-events: none;
}

.alert {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.footer {
  margin-top: 24px;
  font-size: 13px;
  color: #6b7280;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid #22c55e;
}

.forgot-link {
  margin-top: 14px;
  display: inline-block;
  font-size: 14px;
  color: #2e09df;
  text-decoration: none;
  opacity: 0.85;
}

.forgot-link:hover {
  text-decoration: underline;
  opacity: 1;
}

@media (max-width:480px) {
  .login-container {
    margin: 15px;
    padding: 30px 22px;
  }
}