/* Form kết nối trang học LMS — học viên (app.html) */
.lms-connect-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(139, 92, 246, 0.18);
  background: linear-gradient(165deg, #ffffff 0%, #f5f3ff 42%, #eff6ff 100%);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.06),
    0 12px 40px -12px rgba(79, 70, 229, 0.18);
}

.lms-connect-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.lms-connect-hero {
  position: relative;
  padding: 1.25rem 1.25rem 0;
}

@media (min-width: 640px) {
  .lms-connect-hero {
    padding: 1.5rem 1.75rem 0;
  }
}

.lms-connect-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b21b6;
  background: rgba(237, 233, 254, 0.9);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.lms-connect-form {
  position: relative;
  padding: 1rem 1.25rem 1.5rem;
}

@media (min-width: 640px) {
  .lms-connect-form {
    padding: 1.25rem 1.75rem 1.75rem;
  }
}

.lms-connect-step {
  margin-bottom: 1.25rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.lms-connect-step-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.lms-connect-step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.lms-connect-step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.lms-connect-step-desc {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

.lms-connect-field {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lms-connect-field:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.lms-connect-field--url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
}

.lms-url-preview {
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  background: linear-gradient(90deg, #eef2ff, #f5f3ff);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-all;
}

.lms-url-preview-label {
  font-weight: 700;
  color: #4338ca;
}

.lms-url-preview-link {
  color: #1e293b;
}

.lms-url-accuracy {
  margin-top: 0.65rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #92400e;
}

.lms-url-accuracy strong {
  color: #b45309;
}

.lms-connect-credentials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .lms-connect-credentials {
    grid-template-columns: 1fr 1fr;
  }
}

.lms-connect-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 0.85rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #6366f1 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  transition: transform 0.12s, box-shadow 0.15s;
}

.lms-connect-submit:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.lms-connect-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.lms-connect-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.lms-connect-notes-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed #cbd5e1;
}

.lms-connect-security {
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: rgba(254, 243, 199, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.8rem;
  color: #854d0e;
  line-height: 1.45;
}
