/* INPUT */
.input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid #1f1f3d;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
}

.input::placeholder {
  color: var(--muted);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

/* BUTTON */
.button {
  width: 100%;
  padding: 0.85rem;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* When button has an icon, use a three-column layout: icon | centered text | spacer */
.button:has(img) {
  justify-content: space-between;
}

.button img {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  order: 1;
}

.button span {
  flex: 1;
  text-align: center;
  order: 2;
}

/* Add invisible spacer on the right to balance the icon and keep text centered */
.button:has(img)::after {
  content: '';
  width: 1.25rem;
  flex-shrink: 0;
  order: 3;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-cta {
  background: var(--cta);
  color: #fff;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* LINK */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* KOMUNIKATY */
.message {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  text-align: center;
}

.message-success {
  color: #22c55e;
}

.message-error {
  color: #ef4444;
}

.message-info {
  color: var(--accent);
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--primary);
}
