:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --card: rgba(12, 12, 12, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f5;
  --muted: #9d9d9d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body {
  position: relative;
  overflow: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
  pointer-events: none;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #181818, #0d0d0d);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
  filter: brightness(1.15) contrast(1.05);
}

.brand-text h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 22px 0;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  color: #d8d8d8;
  font-size: 0.92rem;
  font-weight: 600;
}

.login-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #090909;
  color: #fff;
  border-radius: 14px;
  padding: 14px 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-form input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}

.login-form input::placeholder {
  color: #6f6f6f;
}

.login-form button {
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, #ffffff, #d9d9d9);
  color: #000;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.login-form button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.login-form button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
  filter: grayscale(0.08);
  transform: none;
}

.status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.status.is-loading {
  color: #d6d6d6;
}

.status.is-error {
  color: #f1a2a2;
}

.status.is-success {
  color: #b8d7b8;
}

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

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .brand-text h1 {
    font-size: 1.28rem;
  }
}
