/* Unified modern flat style for Identity Server pages */

.is-page-bg {
  height: calc(100vh - 64px);
  max-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.is-card {
  width: 100%;
  max-width: 480px;
  padding: 40px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.is-card-sm {
  width: 100%;
  max-width: 400px;
  padding: 32px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.is-card-center {
  text-align: center;
}

.is-title {
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.is-desc {
  color: #888;
  text-align: center;
  margin-bottom: 24px;
}

.is-version {
  margin-bottom: 24px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.is-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.is-list-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f3f4f6;
  border-radius: 6px;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.is-list-link .material-icons {
  color: #2563eb;
}

.is-license {
  margin-top: 32px;
  background: #f3f4f6;
  padding: 18px 16px;
  border-radius: 8px;
}
.is-license-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.is-license .material-icons {
  color: #2563eb;
}
.is-license-info {
  font-size: 15px;
  color: #444;
}
.is-license-info span {
  color: #2563eb;
}

.is-form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}
.is-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
}
.is-form-input[readonly] {
  background: #f3f4f6;
}

.is-btn-main {
  display: block;
  width: 100%;
  background: #2563eb;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  padding: 12px 0;
  border: none;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 10px;
  cursor: pointer;
}
.is-btn-main:hover {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none;
}
.is-btn-alt {
  display: block;
  width: 100%;
  background: #f3f4f6;
  color: #2563eb;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 0;
  border: none;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.is-btn-alt:hover {
  background: #e5e7eb;
  color: #1d4ed8;
  text-decoration: none;
}
.is-btn-link {
  width: 100%;
  background: none;
  color: #2563eb;
  font-size: 15px;
  padding: 8px 0;
  border: none;
  margin-top: 8px;
}
.is-btn-small {
  background: #f3f4f6;
  color: #2563eb;
  font-size: 15px;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
}
.is-btn-flex {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.is-form-row {
  margin-bottom: 18px;
}
.is-form-row-flex {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}
.is-form-row-flex input[type="checkbox"] {
  margin-right: 6px;
}
.is-form-checkbox-label {
  margin-bottom: 0;
  color: #666;
}
.is-form-mb {
  margin-bottom: 16px;
}
.is-external-section {
  margin-top: 24px;
}
.is-external-text {
  text-align: center;
  color: #888;
  margin-bottom: 12px;
}
.is-external-btn {
  display: block;
  width: 100%;
  background: #f3f4f6;
  color: #222;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 0;
  border: none;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  margin-bottom: 8px;
}
.is-icon-large {
  font-size: 56px;
  color: #b91c1c;
}
.is-icon-med {
  font-size: 48px;
  color: #2563eb;
}
.is-help-text {
  color: #aaa;
  font-size: 15px;
  margin-bottom: 24px;
}
.is-help-small {
  color: #aaa;
  font-size: 13px;
  margin-top: 4px;
}
.is-text-center {
  text-align: center;
  margin-bottom: 8px;
  color: #888;
}
.is-alert {
  margin-top: 24px;
  text-align: center;
  color: #b91c1c;
  background: #fef2f2;
  padding: 12px;
  border-radius: 6px;
}
.is-muted {
  color: #aaa;
  font-size: 13px;
  text-align: center;
}

/* === Grants Page Styles === */
.is-grants-card {
  background: #fff;
  padding: 32px 36px;
  margin: 32px auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.is-grants-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.is-grants-subtitle {
  color: #666;
  font-size: 16px;
  margin-bottom: 32px;
}

.is-grants-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.is-grants-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #f3f4f6;
}

.is-grants-item:last-child {
  border-bottom: none;
}

.is-grants-client {
  flex: 1;
}

.is-grants-client-name {
  font-size: 18px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 4px;
}

.is-grants-client-date {
  font-size: 14px;
  color: #888;
}

.is-grants-actions {
  margin-left: 16px;
}

.is-btn-revoke {
  background: #dc2626;
  color: #fff;
  font-size: 14px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.is-btn-revoke:hover {
  background: #b91c1c;
  color: #fff;
}

.is-no-grants {
  text-align: center;
  color: #888;
  font-size: 16px;
  padding: 40px 0;
}

/* === Device Code Page Styles === */
.is-device-card {
  background: #fff;
  padding: 32px 36px;
  margin: 32px auto;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  text-align: center;
}

.is-device-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.is-device-text {
  color: #666;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.is-device-code {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #2563eb;
}

.is-device-instructions {
  color: #888;
  font-size: 15px;
  margin: 24px 0;
  line-height: 1.5;
}

.is-device-url {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.is-device-url:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* === CIBA Page Styles === */
.is-ciba-card {
  background: #fff;
  padding: 32px 36px;
  margin: 32px auto;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  text-align: center;
}

.is-ciba-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.is-ciba-text {
  color: #666;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.is-ciba-client {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  border: 1px solid #e9ecef;
}

.is-ciba-client-name {
  font-size: 18px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 4px;
}

.is-ciba-client-id {
  font-size: 14px;
  color: #888;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* === Error Page Styles === */
.is-error-card {
  background: #fff;
  padding: 32px 36px;
  margin: 32px auto;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  text-align: center;
}

.is-error-title {
  font-size: 28px;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 16px;
}

.is-error-subtitle {
  font-size: 18px;
  color: #374151;
  margin-bottom: 20px;
}

.is-error-details {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
  text-align: left;
}

.is-error-details-title {
  font-weight: 500;
  color: #dc2626;
  margin-bottom: 8px;
}

.is-error-details-text {
  color: #7f1d1d;
  font-size: 14px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* === Consent Page Styles === */
.is-consent-card {
  background: #fff;
  padding: 32px 36px;
  margin: 32px auto;
  max-width: 700px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.is-consent-header {
  text-align: center;
  margin-bottom: 32px;
}

.is-consent-title {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.is-consent-subtitle {
  color: #666;
  font-size: 16px;
}

.is-scopes-section {
  margin: 24px 0;
}

.is-scopes-title {
  font-size: 18px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 16px;
}

.is-scope-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.is-scope-checkbox {
  margin-right: 12px;
  margin-top: 2px;
}

.is-scope-info {
  flex: 1;
}

.is-scope-name {
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 4px;
}

.is-scope-desc {
  color: #666;
  font-size: 14px;
}
