/* Button Bashed SSO Client - App Stylesheet (v0.0.6) */

/* ── Federated Login Button Customizations ──────────────────────────── */
.os-auth-provider-btn.os-auth-bbt {
  border-color: rgba(94, 161, 255, 0.35);
  background: rgba(26, 79, 181, 0.15);
  color: #e6f0ff;
}

.os-auth-provider-btn.os-auth-bbt:hover {
  background: rgba(38, 98, 217, 0.35);
  border-color: rgba(115, 180, 255, 0.65);
  color: #ffffff;
}

.os-auth-provider-btn.os-auth-bbt .os-auth-provider-icon {
  width: 20px;
  height: 20px;
}

/* ── SSO Client Settings Panel ─────────────────────────────────────── */
.sso-client-panel {
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  color: var(--os-text, #dbe8fa);
}

.sso-client-panel:not(.hidden) {
  display: flex;
}

.sso-client-panel.hidden {
  display: none;
}

.sso-client-hero {
  border: 1px solid var(--os-window-border, rgba(167, 199, 242, 0.22));
  border-radius: 10px;
  background: rgba(16, 28, 48, 0.6);
  padding: 14px 18px;
}

.sso-client-hero h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.sso-client-hero p {
  margin: 0;
  font-size: 12px;
  color: var(--os-muted, rgba(167, 199, 242, 0.7));
  line-height: 1.4;
}

.sso-client-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sso-client-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sso-client-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--os-text, #dbe8fa);
}

.sso-client-field input[type="text"],
.sso-client-field input[type="password"],
.sso-client-field select,
.sso-client-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid var(--os-window-border, rgba(167, 199, 242, 0.25));
  background: rgba(8, 16, 32, 0.85);
  color: #ffffff;
  font-size: 13px;
}

.sso-client-field input:focus,
.sso-client-field select:focus,
.sso-client-field textarea:focus {
  outline: none;
  border-color: #5ea1ff;
}

.sso-client-field-hint {
  font-size: 11px;
  color: var(--os-muted, rgba(167, 199, 242, 0.6));
}

.sso-client-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.sso-client-checkbox-row label {
  font-size: 13px;
  cursor: pointer;
}

.sso-client-status-box {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  display: none;
}

.sso-client-status-box.active {
  display: block;
}

.sso-client-status-box.ok {
  background: rgba(35, 134, 54, 0.2);
  border: 1px solid rgba(46, 160, 67, 0.4);
  color: #7ee787;
}

.sso-client-status-box.error {
  background: rgba(218, 54, 51, 0.2);
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: #ff7b72;
}

/* ── One-Click Pairing & Connection Card ───────────────────────────── */
.sso-connection-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(20, 35, 60, 0.55);
  border: 1px solid var(--os-window-border, rgba(167, 199, 242, 0.22));
  border-radius: 8px;
  padding: 14px 16px;
}

.sso-connection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sso-connection-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.sso-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.sso-badge-connected {
  background: rgba(46, 160, 67, 0.25);
  border: 1px solid rgba(46, 160, 67, 0.5);
  color: #7ee787;
}

.sso-badge-unconnected {
  background: rgba(210, 153, 34, 0.2);
  border: 1px solid rgba(210, 153, 34, 0.45);
  color: #e3b341;
}

.sso-pair-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #2369d9 0%, #1754b5 100%);
  border: 1px solid #4a8df8;
  border-radius: 6px;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.sso-pair-btn:hover {
  background: linear-gradient(180deg, #2b77f2 0%, #1a5ecc 100%);
}

.sso-client-details {
  border: 1px solid rgba(167, 199, 242, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(10, 20, 36, 0.4);
}

.sso-client-details summary {
  font-size: 12px;
  font-weight: 600;
  color: #8bb8f8;
  cursor: pointer;
  outline: none;
}

.sso-client-details[open] summary {
  margin-bottom: 12px;
}

/* ── Pair Callback Modal/Window ────────────────────────────────────── */
.sso-pair-callback-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1526;
  font-family: system-ui, -apple-system, sans-serif;
  color: #dbe8fa;
}

.sso-pair-card {
  text-align: center;
  background: rgba(20, 35, 60, 0.85);
  border: 1px solid rgba(167, 199, 242, 0.3);
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 360px;
}

.sso-pair-icon {
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  background: rgba(46, 160, 67, 0.25);
  border: 2px solid #2ea043;
  color: #7ee787;
  font-size: 24px;
  margin: 0 auto 16px;
}
