/* Basic reset + layout */
.spg-body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #121212;
  background: #f5f6fb no-repeat center/cover;
  display: grid;
  place-items: center;
  position: relative;
}
.spg-body[style*="background-image"] { background-color: #000; }

.spg-shell {
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
}

.spg-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 28px;
  backdrop-filter: none;
}

.spg-style-minimal .spg-card {
  background: transparent;
  box-shadow: none;
  border: 0;
  color: #fff;
}
.spg-style-minimal .spg-input {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
.spg-style-minimal .spg-label { color: #fff; }
.spg-style-minimal .spg-text p { color: #f3f3f3; }
.spg-style-minimal .spg-button { background: #fff; color: #000; }

.spg-style-glass .spg-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(14px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.spg-style-glass .spg-input {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
}
.spg-style-glass .spg-label { color: #fff; }
.spg-style-glass .spg-text p { color: #f3f3f3; }
.spg-style-glass .spg-button { background: #fff; color: #000; }

.spg-logo {
  text-align: center;
  margin-bottom: 16px;
}
.spg-logo img {
  max-width: 120px;
  height: auto;
}

.spg-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  text-align: center;
}

.spg-text {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.6;
}
.spg-text p { margin: 0 0 12px; }

.spg-error {
  background: #ffe9e9;
  color: #8a1f1f;
  border: 1px solid #f3b3b3;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.spg-form { display: grid; gap: 10px; }
.spg-label { font-weight: 600; }
.spg-input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d9dbe7;
  font-size: 16px;
  outline: none;
}
.spg-input:focus {
  border-color: var(--spg-accent, #2f5dff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--spg-accent, #2f5dff) 25%, transparent);
}

.spg-button {
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: var(--spg-accent, #2f5dff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.spg-button:hover { filter: brightness(0.95); }

@media (prefers-color-scheme: dark) {
  .spg-style-classic .spg-card {
    background: #0f1115;
    color: #e7e7ea;
  }
  .spg-style-classic .spg-input {
    background: #151821;
    border-color: #2a3040;
    color: #e7e7ea;
  }
}
