/* University Diploma Styles */

header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  border-bottom: none;
}

header .logo {
  color: white;
}

header .logo:hover {
  opacity: 0.9;
}

header .logo-icon {
  font-size: 1.5rem;
}

header .badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.info-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #1e3a5f;
}

.info-section p {
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-hint {
  background: #eff6ff;
  border: 1px solid #3b82f6;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.auth-hint h4 {
  color: #1e40af;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-hint p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.credentials-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credential-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.credential-row .credential-label {
  font-weight: 500;
  color: var(--text-muted);
  min-width: 80px;
}

.credential-row code {
  background: #f1f5f9;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #1e40af;
}

.auth-reminder {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #92400e;
}

.auth-reminder code {
  background: rgba(0,0,0,0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-family: monospace;
}

.diploma-preview {
  background: white;
  border: 2px solid #1e3a5f;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.diploma-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: white;
}

.diploma-logo {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.diploma-title h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
}

.diploma-title span {
  font-size: 0.875rem;
  opacity: 0.9;
}

.diploma-body {
  padding: 1.5rem;
}

.diploma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.diploma-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 8px;
}

.diploma-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.diploma-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.diploma-footer {
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.eu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #003399 0%, #0066cc 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.credential-info {
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.credential-info h4 {
  color: #065f46;
  margin-bottom: 0.75rem;
}

.credential-info ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #047857;
}

.credential-info li {
  margin-bottom: 0.375rem;
}

.eudi-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #003399 0%, #0066cc 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.qr-container {
  text-align: center;
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.qr-code {
  display: inline-block;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.qr-code.has-qr {
  padding: 0.5rem;
}

.qr-code img {
  display: block;
}

.same-device-section {
  margin-top: 1rem;
}

.divider-text {
  display: block;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.status-text {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.success-header {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1rem;
}

.success-header h2 {
  color: #1e3a5f;
  margin-bottom: 0.5rem;
}

.success-subtitle {
  color: var(--text-muted);
}

.success-info {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.success-info h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.success-info ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.success-info li {
  margin-bottom: 0.5rem;
}

.next-steps {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.next-steps h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

a.step-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.step-icon {
  font-size: 1.5rem;
}

.step-text strong {
  display: block;
  margin-bottom: 0.125rem;
}

.step-text span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}
