/* ==========================================================================
   Zyphora admin — login
   Depends on theme.css.
   ========================================================================== */

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(760px 520px at 18% 0%, var(--accent-soft), transparent 62%),
    radial-gradient(640px 460px at 88% 100%, var(--cyan-soft), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.login-theme { position: fixed; top: 20px; right: 20px; z-index: 10; }

.login-card {
  position: relative;
  width: 100%;
  max-width: 424px;
  padding: 36px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  box-shadow: var(--shadow-lg);
  animation: cardIn 0.5s var(--ease) both;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}

.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.brand-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 26px rgba(108, 92, 247, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.brand h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.brand p {
  margin-top: 3px;
  color: var(--text3);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro { margin-bottom: 24px; color: var(--text2); font-size: 13px; line-height: 1.6; }

.login-card .btn { width: 100%; height: 46px; margin-top: 4px; }
.login-card .btn .icon { width: 16px; height: 16px; }

.error {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12.5px;
  text-align: center;
}
.error.show { display: block; animation: fadeUp 0.3s var(--ease) both; }

.foot {
  margin-top: 22px;
  color: var(--text3);
  font-size: 11.5px;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .login-card { padding: 26px 22px; border-radius: 18px; }
  .login-theme { top: 14px; right: 14px; }
}
