:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --panel: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.9);
  --muted: rgba(255,255,255,0.65);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.welcome {
      background: rgba(55, 142, 255, 0.47);
      padding: 10px 14px;
      margin-top: 0;
      margin-bottom: 4px;
}
.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration: none;
}

.btn:hover { background: rgba(255,255,255,0.10); }

button.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  background: none;
  border: none;
  padding: 0;
}

button.btn, a.btn {
  cursor: pointer;
}
.btn.secondary {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  /* background: transparent;
  border: 1px solid rgba(255,255,255,.18); */
}
.btn.secondary_login {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(23, 81, 131, 0.535);
  color: var(--text);
  /* background: transparent;
  border: 1px solid rgba(255,255,255,.18); */
}
.btn.secondary_member {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(100, 100, 100, 0.535);
  color: var(--text);
  /* background: transparent;
  border: 1px solid rgba(255,255,255,.18); */
}
button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

label { display: block; margin-top: 10px; color: var(--muted); }
input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text);
}

.small { color: var(--muted); font-size: 0.95rem; }
.err { color: #ff6b6b; margin-top: 10px; }

/* Make inputs a reasonable visual width while staying responsive */
.text-input{
  width: 100%;
  max-width: 260px;   /* adjust: 320–420 is a good range */
  box-sizing: border-box;
}

/* Optional: keep label blocks neat */
label{
  display: block;
}
label .text-input{
  margin-top: 6px;
}

.card{
  position: relative; /* needed for absolute-positioned icon */
}

.card-corner-icon{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 320px;
  height: 320px;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none; /* never blocks clicks */
}

.card-corner-icon img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px; /* optional */
}

/* smaller on mobile */
@media (max-width: 520px){
  .card-corner-icon{
    width: 260px;
    height: 260px;
    top: 4px;
    right: 4px;
  }
}

/* Ensure everything else in the card sits above the icon */
/* .card > *:not(.card-corner-icon){
  position: relative;
  z-index: 1;
} */
