.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 15%, rgba(79, 140, 255, 0.16), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(62, 207, 142, 0.10), transparent 40%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(23, 29, 43, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  animation: loginCardIn 0.45s ease-out;
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.brand {
  text-align: center;
  margin-bottom: 28px;
}

.brand-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.35);
}

.brand-badge svg {
  width: 28px;
  height: 28px;
}

.brand h1 {
  font-size: 21px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.brand p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.input-group {
  margin-bottom: 18px;
  text-align: left;
}

.input-group label {
  font-size: 12.5px;
}

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

.input-icon-wrap .input-icon {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.15s ease;
}

.input-icon-wrap:focus-within .input-icon {
  color: var(--accent);
}

.input-icon-wrap input {
  padding-left: 38px;
}

.btn-login {
  width: 100%;
  position: relative;
  margin-top: 8px;
  padding: 11px 16px;
  font-size: 14.5px;
}

.btn-login .btn-label {
  transition: opacity 0.12s ease;
}

.btn-login .btn-spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: loginSpin 0.7s linear infinite;
}

.btn-login.is-loading .btn-label {
  opacity: 0;
}

.btn-login.is-loading .btn-spinner {
  display: block;
}

@keyframes loginSpin {
  to {
    transform: rotate(360deg);
  }
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 400px) {
  .login-screen {
    padding: 16px;
  }

  .login-card {
    padding: 32px 20px 24px;
  }
}
