/* Doorkeeper OAuth Authorization Styles */

/* Container and Layout */
.doorkeeper-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
}

.doorkeeper-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  padding: 2rem;
}

/* Header Styles */
.doorkeeper-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.doorkeeper-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.doorkeeper-header p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Application Info */
.doorkeeper-app-info {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.doorkeeper-app-info h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.doorkeeper-app-info p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

/* Scopes List */
.doorkeeper-scopes {
  margin: 1.5rem 0;
}

.doorkeeper-scopes h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

.doorkeeper-scopes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doorkeeper-scopes li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.875rem;
}

.doorkeeper-scopes li:last-child {
  border-bottom: none;
}

.doorkeeper-scopes li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Form Elements */
.doorkeeper-form {
  width: 100%;
}

.doorkeeper-form form {
  width: 100%;
}

.doorkeeper-form .actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.doorkeeper-form input[type="submit"],
.doorkeeper-form button {
  padding: 0.625rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.doorkeeper-form input[type="submit"] {
  background-color: #2563eb;
  color: white;
}

.doorkeeper-form input[type="submit"]:hover {
  background-color: #1d4ed8;
}

.doorkeeper-form input[type="submit"]:active {
  background-color: #1e40af;
}

.doorkeeper-form button {
  background-color: #ef4444;
  color: white;
}

.doorkeeper-form button:hover {
  background-color: #dc2626;
}

.doorkeeper-form button:active {
  background-color: #b91c1c;
}

/* Error Messages */
.doorkeeper-errors {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.doorkeeper-errors h2 {
  color: #dc2626;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.doorkeeper-errors ul {
  list-style: disc;
  margin-left: 1.5rem;
  color: #991b1b;
  font-size: 0.875rem;
}

.doorkeeper-errors li {
  margin-bottom: 0.25rem;
}

/* Success Messages */
.doorkeeper-success {
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #065f46;
}

.doorkeeper-success h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #047857;
}

/* Authorization Code Display */
.doorkeeper-code {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 1rem;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: #1f2937;
  word-break: break-all;
}

/* Back Link */
.doorkeeper-back-link {
  text-align: center;
  margin-top: 1.5rem;
}

.doorkeeper-back-link a {
  font-size: 0.875rem;
  color: #6b7280;
  text-decoration: none;
}

.doorkeeper-back-link a:hover {
  color: #111827;
}

/* Tables (for applications list) */
.doorkeeper-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.doorkeeper-table th {
  background-color: #f9fafb;
  padding: 0.75rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.doorkeeper-table td {
  padding: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
}

.doorkeeper-table tr:hover {
  background-color: #f9fafb;
}

.doorkeeper-table a {
  color: #2563eb;
  text-decoration: none;
}

.doorkeeper-table a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 640px) {
  .doorkeeper-container {
    padding: 1rem;
    margin: 1rem auto;
  }

  .doorkeeper-card {
    padding: 1.5rem;
  }

  .doorkeeper-form .actions {
    flex-direction: column;
  }

  .doorkeeper-form input[type="submit"],
  .doorkeeper-form button {
    width: 100%;
  }
}
