body:has(.login-card) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(124, 58, 237, 0.14), transparent 30%),
    linear-gradient(145deg, #080b16 0%, #0b101a 100%);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.login-card {
  width: min(100% - 32px, 500px);
  box-sizing: border-box;
  padding: 44px;
  background: linear-gradient(180deg, #151a24 0%, #111722 100%);
  border: 1px solid #273244;
  border-top: 3px solid #8b5cf6;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.login-brand span {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #a78bfa, #7c3aed);
  color: #050816;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 20px 36px rgba(124, 58, 237, 0.24);
}

.login-brand h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 27px;
  line-height: 1.15;
}

.login-brand p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.login-card .field {
  margin-bottom: 22px;
}

.login-card label {
  display: block;
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 800;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-shell {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #273244;
  border-radius: 13px;
  background: #0f141e;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-shell:focus-within {
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.input-shell input {
  width: 100%;
  height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fafc;
  font-size: 16px;
  line-height: 54px;
}

.input-shell input::placeholder {
  color: #64748b;
}

.login-card .actions {
  margin-top: 30px;
}

.login-card input[type="submit"] {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 13px;
  background: #a78bfa;
  color: #050816;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.login-card input[type="submit"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.login-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid #273244;
  color: #64748b;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.login-footnote span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

body:has(.card-container) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #080b16;
  margin: 0;
  font-family: Arial, sans-serif;
}

.card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  background-color: #151a24;
  padding: 40px;
  border-radius: 12px;
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border: 1px solid #273244;
  border-radius: 12px;
  background-color: #111722;
  text-align: center;
}

.card a {
  color: #a78bfa;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
}

@media (max-width: 560px) {
  .login-card {
    padding: 32px 22px;
  }
}
