:root {
  --gt-green: #1f7a3f;
  --gt-green-dark: #145c2c;
  --gt-bg: #f7f7f4;
  --gt-text: #1c1c1c;
  --gt-muted: #6b6b6b;
  --gt-border: #d8d8d2;
  --gt-error: #b3261e;
  --gt-error-bg: #fbeae9;
  --gt-success: #146c2e;
  --gt-success-bg: #e8f5ea;
  --gt-radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  background: var(--gt-bg);
  color: var(--gt-text);
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--gt-border);
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gt-green-dark);
  text-decoration: none;
}

.lang-toggle button {
  background: none;
  border: 1px solid var(--gt-border);
  border-radius: var(--gt-radius);
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input, select {
  padding: 10px 12px;
  border: 1px solid var(--gt-border);
  border-radius: var(--gt-radius);
  font-size: 1rem;
  width: 100%;
  background: #fff;
}

input:focus, select:focus {
  outline: 2px solid var(--gt-green);
  outline-offset: 1px;
}

fieldset {
  border: 1px solid var(--gt-border);
  border-radius: var(--gt-radius);
  padding: 12px;
  margin: 0 0 14px;
}

legend {
  font-weight: 600;
  padding: 0 6px;
}

button[type="submit"], .btn {
  background: var(--gt-green);
  color: #fff;
  border: none;
  border-radius: var(--gt-radius);
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

button[type="submit"]:hover, .btn:hover { background: var(--gt-green-dark); }

button[type="submit"]:disabled { background: #a9c9b3; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: var(--gt-text);
  border: 1px solid var(--gt-border);
}

.password-field { position: relative; }
.toggle-password {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--gt-green-dark);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 0;
}

.password-strength {
  font-size: 0.8rem;
  color: var(--gt-muted);
}

.errorlist {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  color: var(--gt-error);
  font-size: 0.85rem;
}

.messages {
  list-style: none;
  margin: 12px auto 0;
  padding: 0 16px;
  max-width: 480px;
}

.message {
  padding: 10px 12px;
  border-radius: var(--gt-radius);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.message.error { background: var(--gt-error-bg); color: var(--gt-error); }
.message.success { background: var(--gt-success-bg); color: var(--gt-success); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge.verified { background: var(--gt-success-bg); color: var(--gt-success); }
.badge.unverified { background: var(--gt-error-bg); color: var(--gt-error); }

.connection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gt-border);
}

.scope-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gt-border);
}

.scope-row.rnd-data {
  background: #fff8e6;
  border: 1px solid #f0d792;
  border-radius: var(--gt-radius);
  padding: 10px;
  margin: 8px 0;
}

.consent-app {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.consent-app img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }

.consent-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.consent-actions button { flex: 1; }
